mirror of https://github.com/citusdata/citus.git
Remove citus_update_table_statistics isolation test
parent
56eae48daf
commit
f49d26fbeb
|
@ -1,106 +0,0 @@
|
||||||
Parsed test spec with 2 sessions
|
|
||||||
|
|
||||||
starting permutation: s1-begin s1-drop-table s2-citus-update-table-statistics s1-commit
|
|
||||||
create_distributed_table
|
|
||||||
---------------------------------------------------------------------
|
|
||||||
|
|
||||||
(1 row)
|
|
||||||
|
|
||||||
step s1-begin:
|
|
||||||
BEGIN;
|
|
||||||
|
|
||||||
step s1-drop-table:
|
|
||||||
DROP TABLE dist_table;
|
|
||||||
|
|
||||||
step s2-citus-update-table-statistics:
|
|
||||||
SET client_min_messages TO NOTICE;
|
|
||||||
SELECT citus_update_table_statistics(logicalrelid) FROM pg_dist_partition;
|
|
||||||
<waiting ...>
|
|
||||||
step s1-commit:
|
|
||||||
COMMIT;
|
|
||||||
|
|
||||||
step s2-citus-update-table-statistics: <... completed>
|
|
||||||
s2: NOTICE: relation with OID XXXX does not exist, skipping
|
|
||||||
citus_update_table_statistics
|
|
||||||
---------------------------------------------------------------------
|
|
||||||
|
|
||||||
|
|
||||||
(2 rows)
|
|
||||||
|
|
||||||
|
|
||||||
starting permutation: s1-begin s1-drop-table s2-citus-shards s1-commit
|
|
||||||
create_distributed_table
|
|
||||||
---------------------------------------------------------------------
|
|
||||||
|
|
||||||
(1 row)
|
|
||||||
|
|
||||||
step s1-begin:
|
|
||||||
BEGIN;
|
|
||||||
|
|
||||||
step s1-drop-table:
|
|
||||||
DROP TABLE dist_table;
|
|
||||||
|
|
||||||
step s2-citus-shards:
|
|
||||||
SELECT 1 AS result FROM citus_shards GROUP BY result;
|
|
||||||
<waiting ...>
|
|
||||||
step s1-commit:
|
|
||||||
COMMIT;
|
|
||||||
|
|
||||||
step s2-citus-shards: <... completed>
|
|
||||||
result
|
|
||||||
---------------------------------------------------------------------
|
|
||||||
1
|
|
||||||
(1 row)
|
|
||||||
|
|
||||||
|
|
||||||
starting permutation: s2-begin s2-citus-shards s1-drop-table s2-commit
|
|
||||||
create_distributed_table
|
|
||||||
---------------------------------------------------------------------
|
|
||||||
|
|
||||||
(1 row)
|
|
||||||
|
|
||||||
step s2-begin:
|
|
||||||
BEGIN;
|
|
||||||
|
|
||||||
step s2-citus-shards:
|
|
||||||
SELECT 1 AS result FROM citus_shards GROUP BY result;
|
|
||||||
|
|
||||||
result
|
|
||||||
---------------------------------------------------------------------
|
|
||||||
1
|
|
||||||
(1 row)
|
|
||||||
|
|
||||||
step s1-drop-table:
|
|
||||||
DROP TABLE dist_table;
|
|
||||||
|
|
||||||
step s2-commit:
|
|
||||||
COMMIT;
|
|
||||||
|
|
||||||
|
|
||||||
starting permutation: s2-begin s2-citus-update-table-statistics s1-drop-table s2-commit
|
|
||||||
create_distributed_table
|
|
||||||
---------------------------------------------------------------------
|
|
||||||
|
|
||||||
(1 row)
|
|
||||||
|
|
||||||
step s2-begin:
|
|
||||||
BEGIN;
|
|
||||||
|
|
||||||
step s2-citus-update-table-statistics:
|
|
||||||
SET client_min_messages TO NOTICE;
|
|
||||||
SELECT citus_update_table_statistics(logicalrelid) FROM pg_dist_partition;
|
|
||||||
|
|
||||||
citus_update_table_statistics
|
|
||||||
---------------------------------------------------------------------
|
|
||||||
|
|
||||||
|
|
||||||
(2 rows)
|
|
||||||
|
|
||||||
step s1-drop-table:
|
|
||||||
DROP TABLE dist_table;
|
|
||||||
<waiting ...>
|
|
||||||
step s2-commit:
|
|
||||||
COMMIT;
|
|
||||||
|
|
||||||
step s1-drop-table: <... completed>
|
|
||||||
ERROR: tuple concurrently deleted
|
|
|
@ -62,7 +62,6 @@ test: isolation_insert_select_conflict
|
||||||
test: shared_connection_waits
|
test: shared_connection_waits
|
||||||
test: isolation_cancellation
|
test: isolation_cancellation
|
||||||
test: isolation_undistribute_table
|
test: isolation_undistribute_table
|
||||||
test: isolation_citus_update_table_statistics
|
|
||||||
test: isolation_fix_partition_shard_index_names
|
test: isolation_fix_partition_shard_index_names
|
||||||
|
|
||||||
# Rebalancer
|
# Rebalancer
|
||||||
|
|
|
@ -1,59 +0,0 @@
|
||||||
setup
|
|
||||||
{
|
|
||||||
CREATE TABLE dist_table(a INT, b INT);
|
|
||||||
SELECT create_distributed_table('dist_table', 'a');
|
|
||||||
}
|
|
||||||
|
|
||||||
teardown
|
|
||||||
{
|
|
||||||
DROP TABLE IF EXISTS dist_table;
|
|
||||||
}
|
|
||||||
|
|
||||||
session "s1"
|
|
||||||
|
|
||||||
step "s1-begin"
|
|
||||||
{
|
|
||||||
BEGIN;
|
|
||||||
}
|
|
||||||
|
|
||||||
step "s1-drop-table"
|
|
||||||
{
|
|
||||||
DROP TABLE dist_table;
|
|
||||||
}
|
|
||||||
|
|
||||||
step "s1-commit"
|
|
||||||
{
|
|
||||||
COMMIT;
|
|
||||||
}
|
|
||||||
|
|
||||||
session "s2"
|
|
||||||
|
|
||||||
step "s2-begin"
|
|
||||||
{
|
|
||||||
BEGIN;
|
|
||||||
}
|
|
||||||
|
|
||||||
step "s2-citus-update-table-statistics"
|
|
||||||
{
|
|
||||||
SET client_min_messages TO NOTICE;
|
|
||||||
SELECT citus_update_table_statistics(logicalrelid) FROM pg_dist_partition;
|
|
||||||
}
|
|
||||||
|
|
||||||
step "s2-citus-shards"
|
|
||||||
{
|
|
||||||
SELECT 1 AS result FROM citus_shards GROUP BY result;
|
|
||||||
}
|
|
||||||
|
|
||||||
step "s2-commit"
|
|
||||||
{
|
|
||||||
COMMIT;
|
|
||||||
}
|
|
||||||
|
|
||||||
permutation "s1-begin" "s1-drop-table" "s2-citus-update-table-statistics" "s1-commit"
|
|
||||||
permutation "s1-begin" "s1-drop-table" "s2-citus-shards" "s1-commit"
|
|
||||||
permutation "s2-begin" "s2-citus-shards" "s1-drop-table" "s2-commit"
|
|
||||||
|
|
||||||
// ERROR: tuple concurrently deleted -- is expected in the following permutation
|
|
||||||
// Check the explanation at PR #5155 in the following comment
|
|
||||||
// https://github.com/citusdata/citus/pull/5155#issuecomment-897028194
|
|
||||||
permutation "s2-begin" "s2-citus-update-table-statistics" "s1-drop-table" "s2-commit"
|
|
Loading…
Reference in New Issue