mirror of https://github.com/citusdata/citus.git
152 lines
4.4 KiB
Plaintext
152 lines
4.4 KiB
Plaintext
Parsed test spec with 3 sessions
|
|
|
|
starting permutation: s2-lock-1 s2-lock-2 s1-rebalance-c1 s3-progress s2-unlock-1 s3-progress s2-unlock-2 s3-progress s1-commit s3-progress
|
|
master_set_node_property
|
|
---------------------------------------------------------------------
|
|
|
|
(1 row)
|
|
|
|
step s2-lock-1:
|
|
SELECT pg_advisory_lock(29279, 1);
|
|
|
|
pg_advisory_lock
|
|
---------------------------------------------------------------------
|
|
|
|
(1 row)
|
|
|
|
step s2-lock-2:
|
|
SELECT pg_advisory_lock(29279, 2);
|
|
|
|
pg_advisory_lock
|
|
---------------------------------------------------------------------
|
|
|
|
(1 row)
|
|
|
|
step s1-rebalance-c1:
|
|
BEGIN;
|
|
SELECT * FROM get_rebalance_table_shards_plan('colocated1');
|
|
SELECT rebalance_table_shards('colocated1', shard_transfer_mode:='block_writes');
|
|
<waiting ...>
|
|
step s3-progress:
|
|
set client_min_messages=NOTICE;
|
|
SELECT
|
|
table_name,
|
|
shardid,
|
|
shard_size,
|
|
sourcename,
|
|
sourceport,
|
|
source_shard_size,
|
|
targetname,
|
|
targetport,
|
|
target_shard_size,
|
|
progress
|
|
FROM get_rebalance_progress();
|
|
|
|
table_name|shardid|shard_size|sourcename|sourceport|source_shard_size|targetname|targetport|target_shard_size|progress
|
|
---------------------------------------------------------------------
|
|
colocated1|1500001| 49152|localhost | 57637| 49152|localhost | 57638| 0| 1
|
|
colocated2|1500005| 376832|localhost | 57637| 376832|localhost | 57638| 0| 1
|
|
colocated1|1500002| 196608|localhost | 57637| 196608|localhost | 57638| 0| 0
|
|
colocated2|1500006| 8192|localhost | 57637| 8192|localhost | 57638| 0| 0
|
|
(4 rows)
|
|
|
|
step s2-unlock-1:
|
|
SELECT pg_advisory_unlock(29279, 1);
|
|
|
|
pg_advisory_unlock
|
|
---------------------------------------------------------------------
|
|
t
|
|
(1 row)
|
|
|
|
step s3-progress:
|
|
set client_min_messages=NOTICE;
|
|
SELECT
|
|
table_name,
|
|
shardid,
|
|
shard_size,
|
|
sourcename,
|
|
sourceport,
|
|
source_shard_size,
|
|
targetname,
|
|
targetport,
|
|
target_shard_size,
|
|
progress
|
|
FROM get_rebalance_progress();
|
|
|
|
table_name|shardid|shard_size|sourcename|sourceport|source_shard_size|targetname|targetport|target_shard_size|progress
|
|
---------------------------------------------------------------------
|
|
colocated1|1500001| 73728|localhost | 57637| 49152|localhost | 57638| 73728| 2
|
|
colocated2|1500005| 401408|localhost | 57637| 376832|localhost | 57638| 401408| 2
|
|
colocated1|1500002| 196608|localhost | 57637| 196608|localhost | 57638| 0| 1
|
|
colocated2|1500006| 8192|localhost | 57637| 8192|localhost | 57638| 0| 1
|
|
(4 rows)
|
|
|
|
step s2-unlock-2:
|
|
SELECT pg_advisory_unlock(29279, 2);
|
|
|
|
pg_advisory_unlock
|
|
---------------------------------------------------------------------
|
|
t
|
|
(1 row)
|
|
|
|
step s1-rebalance-c1: <... completed>
|
|
table_name|shardid|shard_size|sourcename|sourceport|targetname|targetport
|
|
---------------------------------------------------------------------
|
|
colocated1|1500001| 0|localhost | 57637|localhost | 57638
|
|
colocated2|1500005| 0|localhost | 57637|localhost | 57638
|
|
colocated1|1500002| 0|localhost | 57637|localhost | 57638
|
|
colocated2|1500006| 0|localhost | 57637|localhost | 57638
|
|
(4 rows)
|
|
|
|
rebalance_table_shards
|
|
---------------------------------------------------------------------
|
|
|
|
(1 row)
|
|
|
|
step s3-progress:
|
|
set client_min_messages=NOTICE;
|
|
SELECT
|
|
table_name,
|
|
shardid,
|
|
shard_size,
|
|
sourcename,
|
|
sourceport,
|
|
source_shard_size,
|
|
targetname,
|
|
targetport,
|
|
target_shard_size,
|
|
progress
|
|
FROM get_rebalance_progress();
|
|
|
|
table_name|shardid|shard_size|sourcename|sourceport|source_shard_size|targetname|targetport|target_shard_size|progress
|
|
---------------------------------------------------------------------
|
|
(0 rows)
|
|
|
|
step s1-commit:
|
|
COMMIT;
|
|
|
|
step s3-progress:
|
|
set client_min_messages=NOTICE;
|
|
SELECT
|
|
table_name,
|
|
shardid,
|
|
shard_size,
|
|
sourcename,
|
|
sourceport,
|
|
source_shard_size,
|
|
targetname,
|
|
targetport,
|
|
target_shard_size,
|
|
progress
|
|
FROM get_rebalance_progress();
|
|
|
|
table_name|shardid|shard_size|sourcename|sourceport|source_shard_size|targetname|targetport|target_shard_size|progress
|
|
---------------------------------------------------------------------
|
|
(0 rows)
|
|
|
|
restore_isolation_tester_func
|
|
---------------------------------------------------------------------
|
|
|
|
(1 row)
|
|
|