mirror of https://github.com/citusdata/citus.git
fix_concurrent_shard_move_create_table_try_2
parent
bf9b64fdc1
commit
cd4f1a420c
|
|
@ -594,16 +594,11 @@ step s2-move-placement:
|
|||
SELECT master_move_shard_placement(
|
||||
get_shard_id_for_distribution_column('logical_replicate_placement', 4),
|
||||
'localhost', 57637, 'localhost', 57638);
|
||||
<waiting ...>
|
||||
|
||||
ERROR: could not acquire the lock required to move placement public.logical_replicate_placement
|
||||
step s1-end:
|
||||
COMMIT;
|
||||
|
||||
step s2-move-placement: <... completed>
|
||||
master_move_shard_placement
|
||||
---------------------------------------------------------------------
|
||||
|
||||
(1 row)
|
||||
|
||||
step s2-end:
|
||||
COMMIT;
|
||||
|
||||
|
|
|
|||
|
|
@ -17,12 +17,11 @@ master_move_shard_placement
|
|||
|
||||
step s1-move-placement:
|
||||
SELECT master_move_shard_placement((SELECT * FROM selected_shard_for_test_table), 'localhost', 57637, 'localhost', 57638, 'force_logical');
|
||||
<waiting ...>
|
||||
|
||||
ERROR: could not acquire the lock required to move placement public.test_move_table
|
||||
step s2-commit:
|
||||
COMMIT;
|
||||
|
||||
step s1-move-placement: <... completed>
|
||||
ERROR: source placement must be in active state
|
||||
step s2-print-placements:
|
||||
SELECT
|
||||
nodename, nodeport, count(*)
|
||||
|
|
@ -55,12 +54,11 @@ master_move_shard_placement
|
|||
|
||||
step s1-move-placement:
|
||||
SELECT master_move_shard_placement((SELECT * FROM selected_shard_for_test_table), 'localhost', 57637, 'localhost', 57638, 'force_logical');
|
||||
<waiting ...>
|
||||
|
||||
ERROR: could not acquire the lock required to move placement public.test_move_table
|
||||
step s2-commit:
|
||||
COMMIT;
|
||||
|
||||
step s1-move-placement: <... completed>
|
||||
ERROR: source placement must be in active state
|
||||
step s2-print-placements:
|
||||
SELECT
|
||||
nodename, nodeport, count(*)
|
||||
|
|
|
|||
|
|
@ -139,5 +139,5 @@ permutation "s1-insert" "s1-begin" "s2-begin" "s2-select" "s1-move-placement" "s
|
|||
permutation "s1-insert" "s1-begin" "s2-begin" "s2-select-for-update" "s1-move-placement" "s2-end" "s1-end" "s1-get-shard-distribution"
|
||||
|
||||
|
||||
// This test actually blocks because we don't want two non blocking shard moves at the same time
|
||||
// This test fails because we don't want two non blocking shard moves at the same time
|
||||
permutation "s1-begin" "s2-begin" "s1-move-placement" "s2-move-placement" "s1-end" "s2-end"
|
||||
|
|
|
|||
Loading…
Reference in New Issue