mirror of https://github.com/citusdata/citus.git
Merge branch 'main' into merge-queue-support
commit
7910f40726
|
@ -107,6 +107,12 @@ SELECT pg_catalog.citus_split_shard_by_split_points(
|
||||||
|
|
||||||
(1 row)
|
(1 row)
|
||||||
|
|
||||||
|
SELECT public.wait_for_resource_cleanup();
|
||||||
|
wait_for_resource_cleanup
|
||||||
|
---------------------------------------------------------------------
|
||||||
|
|
||||||
|
(1 row)
|
||||||
|
|
||||||
\c - - - :worker_2_port
|
\c - - - :worker_2_port
|
||||||
SET search_path TO "citus_split_test_schema";
|
SET search_path TO "citus_split_test_schema";
|
||||||
-- Replication slots should be cleaned up
|
-- Replication slots should be cleaned up
|
||||||
|
|
|
@ -9,9 +9,14 @@ SELECT 1 FROM master_add_node('localhost', :master_port, groupid => 0);
|
||||||
RESET client_min_messages;
|
RESET client_min_messages;
|
||||||
-- Kill maintenance daemon so it gets restarted and gets a gpid containing our
|
-- Kill maintenance daemon so it gets restarted and gets a gpid containing our
|
||||||
-- nodeid
|
-- nodeid
|
||||||
SELECT pg_terminate_backend(pid)
|
SELECT COUNT(pg_terminate_backend(pid)) >= 0
|
||||||
FROM pg_stat_activity
|
FROM pg_stat_activity
|
||||||
WHERE application_name = 'Citus Maintenance Daemon' \gset
|
WHERE application_name = 'Citus Maintenance Daemon';
|
||||||
|
?column?
|
||||||
|
---------------------------------------------------------------------
|
||||||
|
t
|
||||||
|
(1 row)
|
||||||
|
|
||||||
-- reconnect to make sure we get a session with the gpid containing our nodeid
|
-- reconnect to make sure we get a session with the gpid containing our nodeid
|
||||||
\c - - - -
|
\c - - - -
|
||||||
CREATE SCHEMA global_cancel;
|
CREATE SCHEMA global_cancel;
|
||||||
|
@ -77,6 +82,7 @@ ERROR: must be a superuser to terminate superuser process
|
||||||
SELECT pg_cancel_backend(citus_backend_gpid());
|
SELECT pg_cancel_backend(citus_backend_gpid());
|
||||||
ERROR: canceling statement due to user request
|
ERROR: canceling statement due to user request
|
||||||
\c - postgres - :master_port
|
\c - postgres - :master_port
|
||||||
|
DROP USER global_cancel_user;
|
||||||
SET client_min_messages TO DEBUG;
|
SET client_min_messages TO DEBUG;
|
||||||
-- 10000000000 is the node id multiplier for global pid
|
-- 10000000000 is the node id multiplier for global pid
|
||||||
SELECT pg_cancel_backend(10000000000 * citus_coordinator_nodeid() + 0);
|
SELECT pg_cancel_backend(10000000000 * citus_coordinator_nodeid() + 0);
|
||||||
|
|
|
@ -79,6 +79,8 @@ SELECT pg_catalog.citus_split_shard_by_split_points(
|
||||||
ARRAY[:worker_2_node, :worker_2_node, :worker_2_node],
|
ARRAY[:worker_2_node, :worker_2_node, :worker_2_node],
|
||||||
'force_logical');
|
'force_logical');
|
||||||
|
|
||||||
|
SELECT public.wait_for_resource_cleanup();
|
||||||
|
|
||||||
\c - - - :worker_2_port
|
\c - - - :worker_2_port
|
||||||
SET search_path TO "citus_split_test_schema";
|
SET search_path TO "citus_split_test_schema";
|
||||||
-- Replication slots should be cleaned up
|
-- Replication slots should be cleaned up
|
||||||
|
|
|
@ -5,9 +5,9 @@ RESET client_min_messages;
|
||||||
|
|
||||||
-- Kill maintenance daemon so it gets restarted and gets a gpid containing our
|
-- Kill maintenance daemon so it gets restarted and gets a gpid containing our
|
||||||
-- nodeid
|
-- nodeid
|
||||||
SELECT pg_terminate_backend(pid)
|
SELECT COUNT(pg_terminate_backend(pid)) >= 0
|
||||||
FROM pg_stat_activity
|
FROM pg_stat_activity
|
||||||
WHERE application_name = 'Citus Maintenance Daemon' \gset
|
WHERE application_name = 'Citus Maintenance Daemon';
|
||||||
|
|
||||||
-- reconnect to make sure we get a session with the gpid containing our nodeid
|
-- reconnect to make sure we get a session with the gpid containing our nodeid
|
||||||
\c - - - -
|
\c - - - -
|
||||||
|
@ -58,6 +58,8 @@ SELECT pg_cancel_backend(citus_backend_gpid());
|
||||||
|
|
||||||
\c - postgres - :master_port
|
\c - postgres - :master_port
|
||||||
|
|
||||||
|
DROP USER global_cancel_user;
|
||||||
|
|
||||||
SET client_min_messages TO DEBUG;
|
SET client_min_messages TO DEBUG;
|
||||||
|
|
||||||
-- 10000000000 is the node id multiplier for global pid
|
-- 10000000000 is the node id multiplier for global pid
|
||||||
|
|
Loading…
Reference in New Issue