Check isolation test

velioglu/wo_seq_test_1
Burak Velioglu 2022-01-14 11:46:20 +03:00
parent 16807343b4
commit f29af1e23e
No known key found for this signature in database
GPG Key ID: F6827E620F6549C6
3 changed files with 9 additions and 8 deletions

View File

@ -1,5 +1,7 @@
SET citus.next_shard_id TO 1300000; SET citus.next_shard_id TO 1300000;
ALTER SEQUENCE pg_catalog.pg_dist_colocationid_seq RESTART 4; ALTER SEQUENCE pg_catalog.pg_dist_colocationid_seq RESTART 4;
-- Delete orphaned entries from pg_dist_colocation
DELETE FROM pg_dist_colocation where colocationid = 5 or colocationid = 6;
-- =================================================================== -- ===================================================================
-- create test utility function -- create test utility function
-- =================================================================== -- ===================================================================

View File

@ -123,12 +123,12 @@ step "deadlock-checker-call"
// verify that locks on the placement of the reference table on the coordinator is // verify that locks on the placement of the reference table on the coordinator is
// taken into account when looking for distributed deadlocks // taken into account when looking for distributed deadlocks
// permutation "s1-begin" "s2-begin" "s1-update-dist-table" "s2-lock-ref-table-placement-on-coordinator" "s1-lock-ref-table-placement-on-coordinator" "s2-update-dist-table" "deadlock-checker-call" "s1-end" "s2-end" permutation "s1-begin" "s2-begin" "s1-update-dist-table" "s2-lock-ref-table-placement-on-coordinator" "s1-lock-ref-table-placement-on-coordinator" "s2-update-dist-table" "deadlock-checker-call" "s1-end" "s2-end"
// verify that *_dist_stat_activity() functions return the correct result when query // verify that *_dist_stat_activity() functions return the correct result when query
// has a task on the coordinator. // has a task on the coordinator.
permutation "s1-begin" "s2-begin" "s1-update-ref-table" "s2-sleep" "s2-view-dist" "s2-view-worker" "s2-end" "s1-end" // permutation "s1-begin" "s2-begin" "s1-update-ref-table" "s2-sleep" "s2-view-dist" "s2-view-worker" "s2-end" "s1-end"
// verify that get_*_active_transactions() functions return the correct result when // verify that get_*_active_transactions() functions return the correct result when
// the query has a task on the coordinator. // the query has a task on the coordinator.
permutation "s1-begin" "s2-begin" "s1-update-ref-table" "s2-active-transactions" "s1-end" "s2-end" // permutation "s1-begin" "s2-begin" "s1-update-ref-table" "s2-active-transactions" "s1-end" "s2-end"

View File

@ -1,6 +1,9 @@
SET citus.next_shard_id TO 1300000; SET citus.next_shard_id TO 1300000;
ALTER SEQUENCE pg_catalog.pg_dist_colocationid_seq RESTART 7; ALTER SEQUENCE pg_catalog.pg_dist_colocationid_seq RESTART 4;
-- Delete orphaned entries from pg_dist_colocation
DELETE FROM pg_dist_colocation where colocationid = 5 or colocationid = 6;
-- =================================================================== -- ===================================================================
-- create test utility function -- create test utility function
@ -547,7 +550,3 @@ DROP TABLE range_table;
DROP TABLE none; DROP TABLE none;
DROP TABLE ref; DROP TABLE ref;
DROP TABLE local_table; DROP TABLE local_table;
-- Reactivate remote nodes as well
SELECT citus_activate_node('localhost', :worker_1_port);
SELECT citus_activate_node('localhost', :worker_2_port);