Wait until metadata sync before testing distributed sequences

pull/5801/head
Hanefi Onaldi 2022-03-15 00:35:01 +03:00 committed by Marco Slot
parent e42a798707
commit c0cd8f3d56
2 changed files with 9 additions and 2 deletions

View File

@ -1819,7 +1819,13 @@ SELECT pg_reload_conf();
t
(1 row)
UPDATE pg_dist_node SET metadatasynced=true WHERE nodeport=:worker_1_port;
-- make sure that all the nodes have valid metadata before moving forward
SELECT wait_until_metadata_sync(60000);
wait_until_metadata_sync
---------------------------------------------------------------------
(1 row)
SELECT master_add_node('localhost', :worker_2_port);
master_add_node
---------------------------------------------------------------------

View File

@ -779,7 +779,8 @@ ALTER SYSTEM SET citus.metadata_sync_interval TO DEFAULT;
ALTER SYSTEM SET citus.metadata_sync_retry_interval TO DEFAULT;
SELECT pg_reload_conf();
UPDATE pg_dist_node SET metadatasynced=true WHERE nodeport=:worker_1_port;
-- make sure that all the nodes have valid metadata before moving forward
SELECT wait_until_metadata_sync(60000);
SELECT master_add_node('localhost', :worker_2_port);