Jelte Fennema 2020-06-16 13:48:48 +02:00 committed by GitHub
parent 56eb5ee305
commit 799bfdab56
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 16 deletions

View File

@ -133,17 +133,12 @@ ORDER BY 1;
-- now, ensure this from the workers perspective -- now, ensure this from the workers perspective
-- we should only see the connection/backend that is running the command below -- we should only see the connection/backend that is running the command below
SELECT -- TODO: Enable again once this is not failing randomly anymore
result, success -- SELECT
FROM -- result, success
run_command_on_workers($$select count(*) from pg_stat_activity WHERE backend_type = 'client backend';$$) -- FROM
ORDER BY 1, 2; -- run_command_on_workers($$select count(*) from pg_stat_activity WHERE backend_type = 'client backend';$$)
result | success -- ORDER BY 1, 2;
---------------------------------------------------------------------
1 | t
1 | t
(2 rows)
-- in case other tests relies on these setting, reset them -- in case other tests relies on these setting, reset them
ALTER SYSTEM RESET citus.distributed_deadlock_detection_factor; ALTER SYSTEM RESET citus.distributed_deadlock_detection_factor;
ALTER SYSTEM RESET citus.recover_2pc_interval; ALTER SYSTEM RESET citus.recover_2pc_interval;

View File

@ -67,11 +67,12 @@ ORDER BY 1;
-- now, ensure this from the workers perspective -- now, ensure this from the workers perspective
-- we should only see the connection/backend that is running the command below -- we should only see the connection/backend that is running the command below
SELECT -- TODO: Enable again once this is not failing randomly anymore
result, success -- SELECT
FROM -- result, success
run_command_on_workers($$select count(*) from pg_stat_activity WHERE backend_type = 'client backend';$$) -- FROM
ORDER BY 1, 2; -- run_command_on_workers($$select count(*) from pg_stat_activity WHERE backend_type = 'client backend';$$)
-- ORDER BY 1, 2;
-- in case other tests relies on these setting, reset them -- in case other tests relies on these setting, reset them