Adds comments describing shadow tests

connection-string-tests-9.2-include
Halil Ozan Akgul 2020-03-24 16:25:16 +03:00
parent 3a2a30bf88
commit 742baf78f2
8 changed files with 21 additions and 0 deletions

View File

@ -1,6 +1,8 @@
-- --
-- MULTI_CREATE_TABLE -- MULTI_CREATE_TABLE
-- --
-- Some of the tests fail but without them some other tests fail. So failing parts
-- are removed to create shadow tests. This is one of them.
ALTER SEQUENCE pg_catalog.pg_dist_shardid_seq RESTART 360000; ALTER SEQUENCE pg_catalog.pg_dist_shardid_seq RESTART 360000;
ERROR: must be owner of sequence pg_dist_shardid_seq ERROR: must be owner of sequence pg_dist_shardid_seq
ALTER SEQUENCE pg_catalog.pg_dist_colocationid_seq RESTART 100000; ALTER SEQUENCE pg_catalog.pg_dist_colocationid_seq RESTART 100000;

View File

@ -1,4 +1,6 @@
-- File to create functions and helpers needed for subsequent tests -- File to create functions and helpers needed for subsequent tests
-- Some of the tests fail but without them some other tests fail. So failing parts
-- are removed to create shadow tests. This is one of them.
-- create a helper function to create objects on each node -- create a helper function to create objects on each node
CREATE OR REPLACE FUNCTION run_command_on_master_and_workers(p_sql text) CREATE OR REPLACE FUNCTION run_command_on_master_and_workers(p_sql text)
RETURNS void LANGUAGE plpgsql AS $$ RETURNS void LANGUAGE plpgsql AS $$

View File

@ -2,6 +2,10 @@
-- multi behavioral analytics -- multi behavioral analytics
-- this file is intended to create the table requires for the tests -- this file is intended to create the table requires for the tests
-- --
-- Some of the tests fail but without them some other tests fail. So failing parts
-- are removed to create shadow tests. This is one of them.
SET citus.next_shard_id TO 1400000; SET citus.next_shard_id TO 1400000;
SET citus.shard_replication_factor = 1; SET citus.shard_replication_factor = 1;
SET citus.shard_count = 32; SET citus.shard_count = 32;

View File

@ -6,6 +6,9 @@
-- citus.shard_max_size. These values are set in pg_regress_multi.pl. Shard placement -- citus.shard_max_size. These values are set in pg_regress_multi.pl. Shard placement
-- policy is left to the default value (round-robin) to test the common install case. -- policy is left to the default value (round-robin) to test the common install case.
-- Some of the tests fail but without them some other tests fail. So failing parts
-- are removed to create shadow tests. This is one of them.
SET citus.next_shard_id TO 290000; SET citus.next_shard_id TO 290000;
\copy lineitem FROM '@abs_srcdir@/data/lineitem.1.data' with delimiter '|' \copy lineitem FROM '@abs_srcdir@/data/lineitem.1.data' with delimiter '|'

View File

@ -2,6 +2,8 @@
-- multi behavioral analytics -- multi behavioral analytics
-- this file is intended to create the table requires for the tests -- this file is intended to create the table requires for the tests
-- --
-- Some of the tests fail but without them some other tests fail. So failing parts
-- are removed to create shadow tests. This is one of them.
SET citus.next_shard_id TO 1400000; SET citus.next_shard_id TO 1400000;
SET citus.shard_replication_factor = 1; SET citus.shard_replication_factor = 1;
SET citus.shard_count = 32; SET citus.shard_count = 32;

View File

@ -5,6 +5,8 @@
-- of shards uploaded depends on two config values: citus.shard_replication_factor and -- of shards uploaded depends on two config values: citus.shard_replication_factor and
-- citus.shard_max_size. These values are set in pg_regress_multi.pl. Shard placement -- citus.shard_max_size. These values are set in pg_regress_multi.pl. Shard placement
-- policy is left to the default value (round-robin) to test the common install case. -- policy is left to the default value (round-robin) to test the common install case.
-- Some of the tests fail but without them some other tests fail. So failing parts
-- are removed to create shadow tests. This is one of them.
SET citus.next_shard_id TO 290000; SET citus.next_shard_id TO 290000;
\copy lineitem FROM '@abs_srcdir@/data/lineitem.1.data' with delimiter '|' \copy lineitem FROM '@abs_srcdir@/data/lineitem.1.data' with delimiter '|'
\copy lineitem FROM '@abs_srcdir@/data/lineitem.2.data' with delimiter '|' \copy lineitem FROM '@abs_srcdir@/data/lineitem.2.data' with delimiter '|'

View File

@ -2,6 +2,9 @@
-- MULTI_CREATE_TABLE -- MULTI_CREATE_TABLE
-- --
-- Some of the tests fail but without them some other tests fail. So failing parts
-- are removed to create shadow tests. This is one of them.
ALTER SEQUENCE pg_catalog.pg_dist_shardid_seq RESTART 360000; ALTER SEQUENCE pg_catalog.pg_dist_shardid_seq RESTART 360000;
ALTER SEQUENCE pg_catalog.pg_dist_colocationid_seq RESTART 100000; ALTER SEQUENCE pg_catalog.pg_dist_colocationid_seq RESTART 100000;

View File

@ -1,5 +1,8 @@
-- File to create functions and helpers needed for subsequent tests -- File to create functions and helpers needed for subsequent tests
-- Some of the tests fail but without them some other tests fail. So failing parts
-- are removed to create shadow tests. This is one of them.
-- create a helper function to create objects on each node -- create a helper function to create objects on each node
CREATE OR REPLACE FUNCTION run_command_on_master_and_workers(p_sql text) CREATE OR REPLACE FUNCTION run_command_on_master_and_workers(p_sql text)
RETURNS void LANGUAGE plpgsql AS $$ RETURNS void LANGUAGE plpgsql AS $$