From 7992077fd98744939d8f4e94fdfd486680df5671 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philip=20Dub=C3=A9?= Date: Thu, 25 Jul 2019 23:58:58 +0000 Subject: [PATCH] multi_modifying_xacts: don't differ in output if reference table select tries broken worker first --- src/test/regress/expected/multi_modifying_xacts.out | 2 ++ src/test/regress/expected/multi_modifying_xacts_9.out | 2 ++ src/test/regress/sql/multi_modifying_xacts.sql | 2 ++ 3 files changed, 6 insertions(+) diff --git a/src/test/regress/expected/multi_modifying_xacts.out b/src/test/regress/expected/multi_modifying_xacts.out index 3dc2db011..9495941c7 100644 --- a/src/test/regress/expected/multi_modifying_xacts.out +++ b/src/test/regress/expected/multi_modifying_xacts.out @@ -1186,11 +1186,13 @@ COPY reference_failure_test FROM STDIN WITH (FORMAT 'csv'); ERROR: connection error: localhost:57637 COMMIT; -- show that no data go through the table and shard states are good +SET client_min_messages to 'ERROR'; SELECT * FROM reference_failure_test; key | value -----+------- (0 rows) +RESET client_min_messages; -- all placements should be healthy SELECT s.logicalrelid::regclass::text, sp.shardstate, count(*) FROM pg_dist_shard_placement AS sp, diff --git a/src/test/regress/expected/multi_modifying_xacts_9.out b/src/test/regress/expected/multi_modifying_xacts_9.out index c59189392..cb6f1d756 100644 --- a/src/test/regress/expected/multi_modifying_xacts_9.out +++ b/src/test/regress/expected/multi_modifying_xacts_9.out @@ -1188,11 +1188,13 @@ COPY reference_failure_test FROM STDIN WITH (FORMAT 'csv'); ERROR: connection error: localhost:57637 COMMIT; -- show that no data go through the table and shard states are good +SET client_min_messages to 'ERROR'; SELECT * FROM reference_failure_test; key | value -----+------- (0 rows) +RESET client_min_messages; -- all placements should be healthy SELECT s.logicalrelid::regclass::text, sp.shardstate, count(*) FROM pg_dist_shard_placement AS sp, diff --git a/src/test/regress/sql/multi_modifying_xacts.sql b/src/test/regress/sql/multi_modifying_xacts.sql index 2d462e6bc..0250dc5fe 100644 --- a/src/test/regress/sql/multi_modifying_xacts.sql +++ b/src/test/regress/sql/multi_modifying_xacts.sql @@ -923,7 +923,9 @@ COPY reference_failure_test FROM STDIN WITH (FORMAT 'csv'); COMMIT; -- show that no data go through the table and shard states are good +SET client_min_messages to 'ERROR'; SELECT * FROM reference_failure_test; +RESET client_min_messages; -- all placements should be healthy