From 233230968f399f158aeaa354b1b131a66b2bea38 Mon Sep 17 00:00:00 2001 From: Burak Velioglu Date: Tue, 25 Jan 2022 16:47:13 +0300 Subject: [PATCH] Fix multi_colocation test --- src/test/regress/sql/multi_colocation_utils.sql | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/test/regress/sql/multi_colocation_utils.sql b/src/test/regress/sql/multi_colocation_utils.sql index 3e4f8e441..b45f8b39e 100644 --- a/src/test/regress/sql/multi_colocation_utils.sql +++ b/src/test/regress/sql/multi_colocation_utils.sql @@ -410,11 +410,9 @@ SELECT update_distributed_table_colocation('table1_group_none', colocate_with => SELECT update_distributed_table_colocation('table1_group_none', colocate_with => 'table2_groupE'); SELECT update_distributed_table_colocation('table1_group_none', colocate_with => 'table3_groupE'); --- sync metadata to get rid of inconsistencies in pg_dist tables -select stop_metadata_sync_to_node('localhost', :worker_1_port); -select stop_metadata_sync_to_node('localhost', :worker_2_port); -select start_metadata_sync_to_node('localhost', :worker_1_port); -select start_metadata_sync_to_node('localhost', :worker_2_port); +-- activate node to get rid of inconsistencies in pg_dist tables +select citus_activate_node('localhost', :worker_1_port); +select citus_activate_node('localhost', :worker_2_port); -- move a table with a colocation id which is already not in pg_dist_colocation SELECT update_distributed_table_colocation('table1_group_none', colocate_with => 'table2_group_none');