mirror of https://github.com/citusdata/citus.git
not wait forever in upgrade distributed function before (#3731)
parent
07f9a442b0
commit
17373d51da
|
@ -27,7 +27,7 @@ SELECT create_distributed_function('count_values(int)', '$1', colocate_with:='t1
|
|||
(1 row)
|
||||
|
||||
-- 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
|
||||
---------------------------------------------------------------------
|
||||
|
||||
|
|
|
@ -20,7 +20,7 @@ $$ LANGUAGE plpgsql;
|
|||
SELECT create_distributed_function('count_values(int)', '$1', colocate_with:='t1');
|
||||
|
||||
-- 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';
|
||||
SET client_min_messages TO DEBUG1;
|
||||
|
||||
|
|
Loading…
Reference in New Issue