From 46f718c76d1ec767cc598b7797b8a48f0534913e Mon Sep 17 00:00:00 2001 From: Halil Ozan Akgul Date: Wed, 15 Dec 2021 15:55:54 +0300 Subject: [PATCH] Turn metadata sync on in add_coordinator, foreign_key_to_reference_table and replicate_reference_tables_to_coordinator --- src/test/regress/expected/add_coordinator.out | 1 + .../expected/replicate_reference_tables_to_coordinator.out | 1 + src/test/regress/multi_1_schedule | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/test/regress/expected/add_coordinator.out b/src/test/regress/expected/add_coordinator.out index d1e5d7cd8..51808515b 100644 --- a/src/test/regress/expected/add_coordinator.out +++ b/src/test/regress/expected/add_coordinator.out @@ -2,6 +2,7 @@ -- ADD_COORDINATOR -- SELECT master_add_node('localhost', :master_port, groupid => 0) AS master_nodeid \gset +NOTICE: localhost:xxxxx is the coordinator and already contains metadata, skipping syncing the metadata -- adding the same node again should return the existing nodeid SELECT master_add_node('localhost', :master_port, groupid => 0) = :master_nodeid; ?column? diff --git a/src/test/regress/expected/replicate_reference_tables_to_coordinator.out b/src/test/regress/expected/replicate_reference_tables_to_coordinator.out index c7067451a..987c52bdc 100644 --- a/src/test/regress/expected/replicate_reference_tables_to_coordinator.out +++ b/src/test/regress/expected/replicate_reference_tables_to_coordinator.out @@ -506,6 +506,7 @@ SELECT master_remove_node('localhost', :master_port); SELECT master_add_node('localhost', :master_port, groupid => 0) AS master_nodeid \gset NOTICE: Replicating reference table "squares" to the node localhost:xxxxx NOTICE: Replicating reference table "numbers" to the node localhost:xxxxx +NOTICE: localhost:xxxxx is the coordinator and already contains metadata, skipping syncing the metadata -- clean-up SET client_min_messages TO ERROR; DROP SCHEMA replicate_ref_to_coordinator CASCADE; diff --git a/src/test/regress/multi_1_schedule b/src/test/regress/multi_1_schedule index 44b5f44e9..d7cf50e14 100644 --- a/src/test/regress/multi_1_schedule +++ b/src/test/regress/multi_1_schedule @@ -280,10 +280,10 @@ test: multi_foreign_key_relation_graph # and rerun some of the tests. # -------- test: check_mx -test: turn_mx_off test: add_coordinator test: foreign_key_to_reference_table test: replicate_reference_tables_to_coordinator +test: turn_mx_off test: citus_local_tables test: multi_row_router_insert mixed_relkind_tests test: turn_mx_on