not wait forever in upgrade distributed function before (#3731)

pull/3740/head
SaitTalhaNisanci 2020-04-10 09:43:42 +03:00 committed by GitHub
parent 07f9a442b0
commit 17373d51da
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -27,7 +27,7 @@ SELECT create_distributed_function('count_values(int)', '$1', colocate_with:='t1
(1 row) (1 row)
-- make sure that the metadata synced before running the queries -- make sure that the metadata synced before running the queries
SELECT wait_until_metadata_sync(); SELECT wait_until_metadata_sync(5000);
wait_until_metadata_sync wait_until_metadata_sync
--------------------------------------------------------------------- ---------------------------------------------------------------------

View File

@ -20,7 +20,7 @@ $$ LANGUAGE plpgsql;
SELECT create_distributed_function('count_values(int)', '$1', colocate_with:='t1'); SELECT create_distributed_function('count_values(int)', '$1', colocate_with:='t1');
-- make sure that the metadata synced before running the queries -- make sure that the metadata synced before running the queries
SELECT wait_until_metadata_sync(); SELECT wait_until_metadata_sync(5000);
SELECT bool_and(metadatasynced) FROM pg_dist_node WHERE isactive AND noderole = 'primary'; SELECT bool_and(metadatasynced) FROM pg_dist_node WHERE isactive AND noderole = 'primary';
SET client_min_messages TO DEBUG1; SET client_min_messages TO DEBUG1;