mirror of https://github.com/citusdata/citus.git
Add check_mx to operations schedule (#5818)
parent
83b0e98595
commit
6c05e4b35c
|
@ -492,11 +492,12 @@ SELECT "Constraint", "Definition" FROM table_fkeys
|
|||
WHERE "Constraint" LIKE 'table2_group%' OR "Constraint" LIKE 'table1_group%';
|
||||
Constraint | Definition
|
||||
---------------------------------------------------------------------
|
||||
table2_group1_table1_id_fkey | FOREIGN KEY (table1_id) REFERENCES table1_group1(id)
|
||||
table2_group1_table1_id_fkey_13000028 | FOREIGN KEY (table1_id) REFERENCES table1_group1_13000022(id)
|
||||
table2_group1_table1_id_fkey_13000029 | FOREIGN KEY (table1_id) REFERENCES table1_group1_13000023(id)
|
||||
table2_group1_table1_id_fkey_13000031 | FOREIGN KEY (table1_id) REFERENCES table1_group1_13000025(id)
|
||||
table2_group1_table1_id_fkey_13000033 | FOREIGN KEY (table1_id) REFERENCES table1_group1_13000027(id)
|
||||
(4 rows)
|
||||
(5 rows)
|
||||
|
||||
\c - - - :master_port
|
||||
-- test shard copy with foreign constraints
|
||||
|
|
|
@ -2,12 +2,6 @@
|
|||
-- MULTI_MOVE_MX
|
||||
--
|
||||
ALTER SEQUENCE pg_catalog.pg_dist_shardid_seq RESTART 1550000;
|
||||
SELECT start_metadata_sync_to_node('localhost', :worker_2_port);
|
||||
start_metadata_sync_to_node
|
||||
---------------------------------------------------------------------
|
||||
|
||||
(1 row)
|
||||
|
||||
-- Create mx test tables
|
||||
SET citus.shard_count TO 4;
|
||||
SET citus.shard_replication_factor TO 1;
|
||||
|
@ -220,15 +214,3 @@ HINT: Connect to the coordinator and run it again.
|
|||
DROP TABLE mx_table_1;
|
||||
DROP TABLE mx_table_2;
|
||||
DROP TABLE mx_table_3;
|
||||
SELECT stop_metadata_sync_to_node('localhost', :worker_2_port);
|
||||
NOTICE: dropping metadata on the node (localhost,57638)
|
||||
stop_metadata_sync_to_node
|
||||
---------------------------------------------------------------------
|
||||
|
||||
(1 row)
|
||||
|
||||
\c - - - :worker_2_port
|
||||
DELETE FROM pg_dist_node;
|
||||
DELETE FROM pg_dist_partition;
|
||||
DELETE FROM pg_dist_shard;
|
||||
DELETE FROM pg_dist_shard_placement;
|
||||
|
|
|
@ -8,3 +8,4 @@ test: multi_move_mx
|
|||
test: shard_move_deferred_delete
|
||||
test: multi_colocated_shard_rebalance
|
||||
test: ignoring_orphaned_shards
|
||||
test: check_mx
|
||||
|
|
|
@ -3,8 +3,6 @@
|
|||
--
|
||||
ALTER SEQUENCE pg_catalog.pg_dist_shardid_seq RESTART 1550000;
|
||||
|
||||
SELECT start_metadata_sync_to_node('localhost', :worker_2_port);
|
||||
|
||||
-- Create mx test tables
|
||||
SET citus.shard_count TO 4;
|
||||
SET citus.shard_replication_factor TO 1;
|
||||
|
@ -134,9 +132,3 @@ LIMIT 1 OFFSET 1;
|
|||
DROP TABLE mx_table_1;
|
||||
DROP TABLE mx_table_2;
|
||||
DROP TABLE mx_table_3;
|
||||
SELECT stop_metadata_sync_to_node('localhost', :worker_2_port);
|
||||
\c - - - :worker_2_port
|
||||
DELETE FROM pg_dist_node;
|
||||
DELETE FROM pg_dist_partition;
|
||||
DELETE FROM pg_dist_shard;
|
||||
DELETE FROM pg_dist_shard_placement;
|
||||
|
|
Loading…
Reference in New Issue