mirror of https://github.com/citusdata/citus.git
test message
parent
7280b80ef4
commit
daa38468c8
|
@ -42,13 +42,11 @@ SELECT nextval('pg_dist_colocationid_seq') = MAX(colocationid)+1 FROM pg_dist_co
|
||||||
SELECT nextval('pg_dist_operationid_seq') = MAX(operation_id)+1 FROM pg_dist_cleanup;
|
SELECT nextval('pg_dist_operationid_seq') = MAX(operation_id)+1 FROM pg_dist_cleanup;
|
||||||
?column?
|
?column?
|
||||||
---------------------------------------------------------------------
|
---------------------------------------------------------------------
|
||||||
t
|
|
||||||
(1 row)
|
(1 row)
|
||||||
|
|
||||||
SELECT nextval('pg_dist_cleanup_recordid_seq') = MAX(record_id)+1 FROM pg_dist_cleanup;
|
SELECT nextval('pg_dist_cleanup_recordid_seq') = MAX(record_id)+1 FROM pg_dist_cleanup;
|
||||||
?column?
|
?column?
|
||||||
---------------------------------------------------------------------
|
---------------------------------------------------------------------
|
||||||
t
|
|
||||||
(1 row)
|
(1 row)
|
||||||
|
|
||||||
-- If this query gives output it means we've added a new sequence that should
|
-- If this query gives output it means we've added a new sequence that should
|
||||||
|
|
|
@ -42,7 +42,7 @@ SELECT create_distributed_table('table_to_split', 'id');
|
||||||
ARRAY['-100000'],
|
ARRAY['-100000'],
|
||||||
ARRAY[:worker_1_node, :worker_2_node],
|
ARRAY[:worker_1_node, :worker_2_node],
|
||||||
'force_logical');
|
'force_logical');
|
||||||
SELECT * FROM pg_dist_cleanup;
|
SELECT * FROM pg_dist_cleanup where operation_id = 777;
|
||||||
|
|
||||||
-- we need to allow connection so that we can connect to proxy
|
-- we need to allow connection so that we can connect to proxy
|
||||||
SELECT citus.mitmproxy('conn.allow()');
|
SELECT citus.mitmproxy('conn.allow()');
|
||||||
|
@ -61,7 +61,7 @@ SELECT create_distributed_table('table_to_split', 'id');
|
||||||
|
|
||||||
\c - postgres - :master_port
|
\c - postgres - :master_port
|
||||||
SELECT run_try_drop_marked_shards();
|
SELECT run_try_drop_marked_shards();
|
||||||
SELECT * FROM pg_dist_cleanup;
|
SELECT * FROM pg_dist_cleanup where operation_id = 777;
|
||||||
|
|
||||||
\c - - - :worker_2_proxy_port
|
\c - - - :worker_2_proxy_port
|
||||||
SET search_path TO "citus_failure_split_cleanup_schema", public, pg_catalog;
|
SET search_path TO "citus_failure_split_cleanup_schema", public, pg_catalog;
|
||||||
|
@ -87,7 +87,7 @@ SELECT create_distributed_table('table_to_split', 'id');
|
||||||
ARRAY['-100000'],
|
ARRAY['-100000'],
|
||||||
ARRAY[:worker_1_node, :worker_2_node],
|
ARRAY[:worker_1_node, :worker_2_node],
|
||||||
'force_logical');
|
'force_logical');
|
||||||
SELECT * FROM pg_dist_cleanup;
|
SELECT * FROM pg_dist_cleanup where operation_id = 777;
|
||||||
-- we need to allow connection so that we can connect to proxy
|
-- we need to allow connection so that we can connect to proxy
|
||||||
SELECT citus.mitmproxy('conn.allow()');
|
SELECT citus.mitmproxy('conn.allow()');
|
||||||
|
|
||||||
|
@ -105,7 +105,7 @@ SELECT create_distributed_table('table_to_split', 'id');
|
||||||
|
|
||||||
\c - postgres - :master_port
|
\c - postgres - :master_port
|
||||||
SELECT run_try_drop_marked_shards();
|
SELECT run_try_drop_marked_shards();
|
||||||
SELECT * FROM pg_dist_cleanup;
|
SELECT * FROM pg_dist_cleanup where operation_id = 777;
|
||||||
|
|
||||||
\c - - - :worker_2_proxy_port
|
\c - - - :worker_2_proxy_port
|
||||||
SET search_path TO "citus_failure_split_cleanup_schema", public, pg_catalog;
|
SET search_path TO "citus_failure_split_cleanup_schema", public, pg_catalog;
|
||||||
|
@ -131,7 +131,7 @@ SELECT create_distributed_table('table_to_split', 'id');
|
||||||
ARRAY['-100000'],
|
ARRAY['-100000'],
|
||||||
ARRAY[:worker_1_node, :worker_2_node],
|
ARRAY[:worker_1_node, :worker_2_node],
|
||||||
'force_logical');
|
'force_logical');
|
||||||
SELECT * FROM pg_dist_cleanup;
|
SELECT * FROM pg_dist_cleanup where operation_id = 777;
|
||||||
-- we need to allow connection so that we can connect to proxy
|
-- we need to allow connection so that we can connect to proxy
|
||||||
SELECT citus.mitmproxy('conn.allow()');
|
SELECT citus.mitmproxy('conn.allow()');
|
||||||
|
|
||||||
|
@ -149,7 +149,7 @@ SELECT create_distributed_table('table_to_split', 'id');
|
||||||
|
|
||||||
\c - postgres - :master_port
|
\c - postgres - :master_port
|
||||||
SELECT run_try_drop_marked_shards();
|
SELECT run_try_drop_marked_shards();
|
||||||
SELECT * FROM pg_dist_cleanup;
|
SELECT * FROM pg_dist_cleanup where operation_id = 777;
|
||||||
|
|
||||||
\c - - - :worker_2_proxy_port
|
\c - - - :worker_2_proxy_port
|
||||||
SET search_path TO "citus_failure_split_cleanup_schema", public, pg_catalog;
|
SET search_path TO "citus_failure_split_cleanup_schema", public, pg_catalog;
|
||||||
|
@ -175,7 +175,7 @@ SELECT create_distributed_table('table_to_split', 'id');
|
||||||
ARRAY['-100000'],
|
ARRAY['-100000'],
|
||||||
ARRAY[:worker_1_node, :worker_2_node],
|
ARRAY[:worker_1_node, :worker_2_node],
|
||||||
'force_logical');
|
'force_logical');
|
||||||
SELECT * FROM pg_dist_cleanup;
|
SELECT * FROM pg_dist_cleanup where operation_id = 777;
|
||||||
-- we need to allow connection so that we can connect to proxy
|
-- we need to allow connection so that we can connect to proxy
|
||||||
SELECT citus.mitmproxy('conn.allow()');
|
SELECT citus.mitmproxy('conn.allow()');
|
||||||
|
|
||||||
|
@ -193,7 +193,7 @@ SELECT create_distributed_table('table_to_split', 'id');
|
||||||
|
|
||||||
\c - postgres - :master_port
|
\c - postgres - :master_port
|
||||||
SELECT run_try_drop_marked_shards();
|
SELECT run_try_drop_marked_shards();
|
||||||
SELECT * FROM pg_dist_cleanup;
|
SELECT * FROM pg_dist_cleanup where operation_id = 777;
|
||||||
|
|
||||||
\c - - - :worker_2_proxy_port
|
\c - - - :worker_2_proxy_port
|
||||||
SET search_path TO "citus_failure_split_cleanup_schema", public, pg_catalog;
|
SET search_path TO "citus_failure_split_cleanup_schema", public, pg_catalog;
|
||||||
|
@ -219,7 +219,7 @@ SELECT create_distributed_table('table_to_split', 'id');
|
||||||
ARRAY['-100000'],
|
ARRAY['-100000'],
|
||||||
ARRAY[:worker_1_node, :worker_2_node],
|
ARRAY[:worker_1_node, :worker_2_node],
|
||||||
'force_logical');
|
'force_logical');
|
||||||
SELECT * FROM pg_dist_cleanup;
|
SELECT * FROM pg_dist_cleanup where operation_id = 777;
|
||||||
-- we need to allow connection so that we can connect to proxy
|
-- we need to allow connection so that we can connect to proxy
|
||||||
SELECT citus.mitmproxy('conn.allow()');
|
SELECT citus.mitmproxy('conn.allow()');
|
||||||
|
|
||||||
|
@ -237,7 +237,7 @@ SELECT create_distributed_table('table_to_split', 'id');
|
||||||
|
|
||||||
\c - postgres - :master_port
|
\c - postgres - :master_port
|
||||||
SELECT run_try_drop_marked_shards();
|
SELECT run_try_drop_marked_shards();
|
||||||
SELECT * FROM pg_dist_cleanup;
|
SELECT * FROM pg_dist_cleanup where operation_id = 777;
|
||||||
|
|
||||||
\c - - - :worker_2_proxy_port
|
\c - - - :worker_2_proxy_port
|
||||||
SET search_path TO "citus_failure_split_cleanup_schema", public, pg_catalog;
|
SET search_path TO "citus_failure_split_cleanup_schema", public, pg_catalog;
|
||||||
|
@ -263,7 +263,7 @@ SELECT create_distributed_table('table_to_split', 'id');
|
||||||
ARRAY['-100000'],
|
ARRAY['-100000'],
|
||||||
ARRAY[:worker_1_node, :worker_2_node],
|
ARRAY[:worker_1_node, :worker_2_node],
|
||||||
'force_logical');
|
'force_logical');
|
||||||
SELECT * FROM pg_dist_cleanup;
|
SELECT * FROM pg_dist_cleanup where operation_id = 777;
|
||||||
-- we need to allow connection so that we can connect to proxy
|
-- we need to allow connection so that we can connect to proxy
|
||||||
SELECT citus.mitmproxy('conn.allow()');
|
SELECT citus.mitmproxy('conn.allow()');
|
||||||
|
|
||||||
|
@ -281,7 +281,7 @@ SELECT create_distributed_table('table_to_split', 'id');
|
||||||
|
|
||||||
\c - postgres - :master_port
|
\c - postgres - :master_port
|
||||||
SELECT run_try_drop_marked_shards();
|
SELECT run_try_drop_marked_shards();
|
||||||
SELECT * FROM pg_dist_cleanup;
|
SELECT * FROM pg_dist_cleanup where operation_id = 777;
|
||||||
|
|
||||||
\c - - - :worker_2_proxy_port
|
\c - - - :worker_2_proxy_port
|
||||||
SET search_path TO "citus_failure_split_cleanup_schema", public, pg_catalog;
|
SET search_path TO "citus_failure_split_cleanup_schema", public, pg_catalog;
|
||||||
|
@ -309,7 +309,7 @@ SELECT create_distributed_table('table_to_split', 'id');
|
||||||
'force_logical');
|
'force_logical');
|
||||||
-- NO records expected as we fail at 'DropAllLogicalReplicationLeftovers' before creating
|
-- NO records expected as we fail at 'DropAllLogicalReplicationLeftovers' before creating
|
||||||
-- any resources.
|
-- any resources.
|
||||||
SELECT * FROM pg_dist_cleanup;
|
SELECT * FROM pg_dist_cleanup where operation_id = 777;
|
||||||
SELECT relname FROM pg_class where relname LIKE '%table_to_split_%' AND relkind = 'r';
|
SELECT relname FROM pg_class where relname LIKE '%table_to_split_%' AND relkind = 'r';
|
||||||
-- we need to allow connection so that we can connect to proxy
|
-- we need to allow connection so that we can connect to proxy
|
||||||
SELECT citus.mitmproxy('conn.allow()');
|
SELECT citus.mitmproxy('conn.allow()');
|
||||||
|
@ -328,7 +328,7 @@ SELECT create_distributed_table('table_to_split', 'id');
|
||||||
|
|
||||||
\c - postgres - :master_port
|
\c - postgres - :master_port
|
||||||
SELECT run_try_drop_marked_shards();
|
SELECT run_try_drop_marked_shards();
|
||||||
SELECT * FROM pg_dist_cleanup;
|
SELECT * FROM pg_dist_cleanup where operation_id = 777;
|
||||||
|
|
||||||
\c - - - :worker_2_proxy_port
|
\c - - - :worker_2_proxy_port
|
||||||
SET search_path TO "citus_failure_split_cleanup_schema", public, pg_catalog;
|
SET search_path TO "citus_failure_split_cleanup_schema", public, pg_catalog;
|
||||||
|
|
Loading…
Reference in New Issue