mirror of https://github.com/citusdata/citus.git
Merge pull request #5527 from citusdata/turn_metadata_sync_on_in_multi_copy
Fix metadata sync fails on multi_copypull/5526/head
commit
811eda6d0f
|
@ -577,15 +577,6 @@ ALTER USER test_user WITH nologin;
|
||||||
|
|
||||||
-- reissue copy, and it should fail
|
-- reissue copy, and it should fail
|
||||||
COPY numbers_hash FROM STDIN WITH (FORMAT 'csv');
|
COPY numbers_hash FROM STDIN WITH (FORMAT 'csv');
|
||||||
1,1
|
|
||||||
2,2
|
|
||||||
3,3
|
|
||||||
4,4
|
|
||||||
5,5
|
|
||||||
6,6
|
|
||||||
7,7
|
|
||||||
8,8
|
|
||||||
\.
|
|
||||||
|
|
||||||
-- verify shards in the none of the workers as marked invalid
|
-- verify shards in the none of the workers as marked invalid
|
||||||
SELECT shardid, shardstate, nodename, nodeport
|
SELECT shardid, shardstate, nodename, nodeport
|
||||||
|
@ -594,9 +585,6 @@ SELECT shardid, shardstate, nodename, nodeport
|
||||||
|
|
||||||
-- try to insert into a reference table copy should fail
|
-- try to insert into a reference table copy should fail
|
||||||
COPY numbers_reference FROM STDIN WITH (FORMAT 'csv');
|
COPY numbers_reference FROM STDIN WITH (FORMAT 'csv');
|
||||||
3,1
|
|
||||||
4,2
|
|
||||||
\.
|
|
||||||
|
|
||||||
-- verify shards for reference table are still valid
|
-- verify shards for reference table are still valid
|
||||||
SELECT shardid, shardstate, nodename, nodeport
|
SELECT shardid, shardstate, nodename, nodeport
|
||||||
|
@ -608,10 +596,6 @@ SELECT shardid, shardstate, nodename, nodeport
|
||||||
-- since it can not insert into either copies of a shard. shards are expected to
|
-- since it can not insert into either copies of a shard. shards are expected to
|
||||||
-- stay valid since the operation is rolled back.
|
-- stay valid since the operation is rolled back.
|
||||||
COPY numbers_hash_other FROM STDIN WITH (FORMAT 'csv');
|
COPY numbers_hash_other FROM STDIN WITH (FORMAT 'csv');
|
||||||
1,1
|
|
||||||
2,2
|
|
||||||
3,3
|
|
||||||
\.
|
|
||||||
|
|
||||||
-- verify shards for numbers_hash_other are still valid
|
-- verify shards for numbers_hash_other are still valid
|
||||||
-- since copy has failed altogether
|
-- since copy has failed altogether
|
||||||
|
|
|
@ -197,7 +197,6 @@ test: multi_index_statements
|
||||||
test: multi_generate_ddl_commands multi_repair_shards
|
test: multi_generate_ddl_commands multi_repair_shards
|
||||||
test: multi_create_shards
|
test: multi_create_shards
|
||||||
test: multi_transaction_recovery
|
test: multi_transaction_recovery
|
||||||
test: multi_copy
|
|
||||||
test: turn_mx_on
|
test: turn_mx_on
|
||||||
|
|
||||||
test: local_dist_join_modifications
|
test: local_dist_join_modifications
|
||||||
|
@ -209,7 +208,7 @@ test: citus_local_dist_joins
|
||||||
# multi_copy creates hash and range-partitioned tables and performs COPY
|
# multi_copy creates hash and range-partitioned tables and performs COPY
|
||||||
# multi_router_planner creates hash partitioned tables.
|
# multi_router_planner creates hash partitioned tables.
|
||||||
# ---------
|
# ---------
|
||||||
test: fast_path_router_modify pg_dump
|
test: multi_copy fast_path_router_modify pg_dump
|
||||||
test: multi_router_planner
|
test: multi_router_planner
|
||||||
# These 2 tests have prepared statements which sometimes get invalidated by concurrent tests,
|
# These 2 tests have prepared statements which sometimes get invalidated by concurrent tests,
|
||||||
# changing the debug output. We should not run them in parallel with others
|
# changing the debug output. We should not run them in parallel with others
|
||||||
|
|
|
@ -742,7 +742,6 @@ ALTER USER test_user WITH nologin;
|
||||||
-- reissue copy, and it should fail
|
-- reissue copy, and it should fail
|
||||||
COPY numbers_hash FROM STDIN WITH (FORMAT 'csv');
|
COPY numbers_hash FROM STDIN WITH (FORMAT 'csv');
|
||||||
ERROR: connection to the remote node localhost:xxxxx failed with the following error: FATAL: role "test_user" is not permitted to log in
|
ERROR: connection to the remote node localhost:xxxxx failed with the following error: FATAL: role "test_user" is not permitted to log in
|
||||||
CONTEXT: COPY numbers_hash, line 1: "1,1"
|
|
||||||
-- verify shards in the none of the workers as marked invalid
|
-- verify shards in the none of the workers as marked invalid
|
||||||
SELECT shardid, shardstate, nodename, nodeport
|
SELECT shardid, shardstate, nodename, nodeport
|
||||||
FROM pg_dist_shard_placement join pg_dist_shard using(shardid)
|
FROM pg_dist_shard_placement join pg_dist_shard using(shardid)
|
||||||
|
@ -762,7 +761,6 @@ SELECT shardid, shardstate, nodename, nodeport
|
||||||
-- try to insert into a reference table copy should fail
|
-- try to insert into a reference table copy should fail
|
||||||
COPY numbers_reference FROM STDIN WITH (FORMAT 'csv');
|
COPY numbers_reference FROM STDIN WITH (FORMAT 'csv');
|
||||||
ERROR: connection to the remote node localhost:xxxxx failed with the following error: FATAL: role "test_user" is not permitted to log in
|
ERROR: connection to the remote node localhost:xxxxx failed with the following error: FATAL: role "test_user" is not permitted to log in
|
||||||
CONTEXT: COPY numbers_reference, line 1: "3,1"
|
|
||||||
-- verify shards for reference table are still valid
|
-- verify shards for reference table are still valid
|
||||||
SELECT shardid, shardstate, nodename, nodeport
|
SELECT shardid, shardstate, nodename, nodeport
|
||||||
FROM pg_dist_shard_placement join pg_dist_shard using(shardid)
|
FROM pg_dist_shard_placement join pg_dist_shard using(shardid)
|
||||||
|
@ -778,7 +776,6 @@ SELECT shardid, shardstate, nodename, nodeport
|
||||||
-- stay valid since the operation is rolled back.
|
-- stay valid since the operation is rolled back.
|
||||||
COPY numbers_hash_other FROM STDIN WITH (FORMAT 'csv');
|
COPY numbers_hash_other FROM STDIN WITH (FORMAT 'csv');
|
||||||
ERROR: connection to the remote node localhost:xxxxx failed with the following error: FATAL: role "test_user" is not permitted to log in
|
ERROR: connection to the remote node localhost:xxxxx failed with the following error: FATAL: role "test_user" is not permitted to log in
|
||||||
CONTEXT: COPY numbers_hash_other, line 1: "1,1"
|
|
||||||
-- verify shards for numbers_hash_other are still valid
|
-- verify shards for numbers_hash_other are still valid
|
||||||
-- since copy has failed altogether
|
-- since copy has failed altogether
|
||||||
SELECT shardid, shardstate, nodename, nodeport
|
SELECT shardid, shardstate, nodename, nodeport
|
||||||
|
|
Loading…
Reference in New Issue