Try running cleanup function more than once

pull/7338/head
naisila 2023-11-10 10:13:46 +03:00
parent cdef2d5224
commit 1b923eb480
No known key found for this signature in database
GPG Key ID: A824BA9862D73E6D
4 changed files with 28 additions and 0 deletions

View File

@ -113,6 +113,18 @@ SELECT public.wait_for_resource_cleanup();
(1 row)
SELECT public.wait_for_resource_cleanup();
wait_for_resource_cleanup
---------------------------------------------------------------------
(1 row)
SELECT public.wait_for_resource_cleanup();
wait_for_resource_cleanup
---------------------------------------------------------------------
(1 row)
\c - - - :worker_2_port
SET search_path TO "citus_split_test_schema";
-- Replication slots should be cleaned up

View File

@ -93,6 +93,18 @@ SELECT public.wait_for_resource_cleanup();
(1 row)
SELECT public.wait_for_resource_cleanup();
wait_for_resource_cleanup
---------------------------------------------------------------------
(1 row)
SELECT public.wait_for_resource_cleanup();
wait_for_resource_cleanup
---------------------------------------------------------------------
(1 row)
-- the subscription is still there, as there is no cleanup record for it
-- we have created it manually
SELECT subname from pg_subscription;

View File

@ -80,6 +80,8 @@ SELECT pg_catalog.citus_split_shard_by_split_points(
'force_logical');
SELECT public.wait_for_resource_cleanup();
SELECT public.wait_for_resource_cleanup();
SELECT public.wait_for_resource_cleanup();
\c - - - :worker_2_port
SET search_path TO "citus_split_test_schema";

View File

@ -53,6 +53,8 @@ SET search_path TO logical_replication;
select citus_move_shard_placement(6830002, 'localhost', :worker_1_port, 'localhost', :worker_2_port, 'force_logical');
SELECT public.wait_for_resource_cleanup();
SELECT public.wait_for_resource_cleanup();
SELECT public.wait_for_resource_cleanup();
-- the subscription is still there, as there is no cleanup record for it