From 8943d7b52f466ae3b4795b6dfed8a04242c885bd Mon Sep 17 00:00:00 2001 From: Halil Ozan Akgul Date: Wed, 15 Dec 2021 17:52:05 +0300 Subject: [PATCH] Turn metadata sync on in mx_regular_user and remove_coordinator --- src/test/regress/expected/mx_regular_user.out | 26 +++++++++---------- src/test/regress/multi_1_schedule | 3 --- src/test/regress/sql/mx_regular_user.sql | 7 ++--- 3 files changed, 17 insertions(+), 19 deletions(-) diff --git a/src/test/regress/expected/mx_regular_user.out b/src/test/regress/expected/mx_regular_user.out index e57bf8a99..2538929cc 100644 --- a/src/test/regress/expected/mx_regular_user.out +++ b/src/test/regress/expected/mx_regular_user.out @@ -7,19 +7,6 @@ SELECT 1 FROM master_add_node('localhost', :master_port, groupid => 0); 1 (1 row) --- sync the metadata to both nodes -SELECT start_metadata_sync_to_node('localhost', :worker_1_port); - start_metadata_sync_to_node ---------------------------------------------------------------------- - -(1 row) - -SELECT start_metadata_sync_to_node('localhost', :worker_2_port); - start_metadata_sync_to_node ---------------------------------------------------------------------- - -(1 row) - -- create a role and give access one each node separately -- and increase the error level to prevent enterprise to diverge SET client_min_messages TO ERROR; @@ -688,6 +675,19 @@ NOTICE: dropping metadata on the node (localhost,57638) (1 row) +-- finally sync metadata again so it doesn't break later tests +SELECT start_metadata_sync_to_node('localhost', :worker_1_port); + start_metadata_sync_to_node +--------------------------------------------------------------------- + +(1 row) + +SELECT start_metadata_sync_to_node('localhost', :worker_2_port); + start_metadata_sync_to_node +--------------------------------------------------------------------- + +(1 row) + DROP SCHEMA "Mx Regular User" CASCADE; NOTICE: drop cascades to 10 other objects DETAIL: drop cascades to table "Mx Regular User".partitioned_table diff --git a/src/test/regress/multi_1_schedule b/src/test/regress/multi_1_schedule index 4cc811a4b..707e5fe1b 100644 --- a/src/test/regress/multi_1_schedule +++ b/src/test/regress/multi_1_schedule @@ -299,11 +299,8 @@ test: undistribute_table_cascade test: create_citus_local_table_cascade test: fkeys_between_local_ref test: auto_undist_citus_local -test: check_mx -test: turn_mx_off test: mx_regular_user test: remove_coordinator -test: turn_mx_on # ---------- # multi_transactional_drop_shards tests for dropping shards using connection API diff --git a/src/test/regress/sql/mx_regular_user.sql b/src/test/regress/sql/mx_regular_user.sql index ed8c50b07..1c52ebc80 100644 --- a/src/test/regress/sql/mx_regular_user.sql +++ b/src/test/regress/sql/mx_regular_user.sql @@ -3,9 +3,6 @@ SET search_path TO "Mx Regular User"; -- add coordinator in idempotent way SELECT 1 FROM master_add_node('localhost', :master_port, groupid => 0); --- sync the metadata to both nodes -SELECT start_metadata_sync_to_node('localhost', :worker_1_port); -SELECT start_metadata_sync_to_node('localhost', :worker_2_port); -- create a role and give access one each node separately -- and increase the error level to prevent enterprise to diverge @@ -355,4 +352,8 @@ SELECT start_metadata_sync_to_node('localhost', :worker_2_port); SELECT stop_metadata_sync_to_node('localhost', :worker_1_port); SELECT stop_metadata_sync_to_node('localhost', :worker_2_port); +-- finally sync metadata again so it doesn't break later tests +SELECT start_metadata_sync_to_node('localhost', :worker_1_port); +SELECT start_metadata_sync_to_node('localhost', :worker_2_port); + DROP SCHEMA "Mx Regular User" CASCADE;