Uses enable_ddl_propagation file

pull/7563/head
gurkanindibay 2024-03-25 15:00:33 +03:00
parent 35c808e120
commit 1f0ec0fc90
17 changed files with 23 additions and 94 deletions

View File

@ -1,6 +1,7 @@
# ---------- # ----------
# Only run few basic tests to set up a testing environment # Only run few basic tests to set up a testing environment
# ---------- # ----------
test: enable_ddl_propagation
test: multi_test_helpers multi_test_helpers_superuser multi_create_fdw columnar_test_helpers failure_test_helpers test: multi_test_helpers multi_test_helpers_superuser multi_create_fdw columnar_test_helpers failure_test_helpers
test: multi_cluster_management test: multi_cluster_management
test: multi_test_catalog_views test: multi_test_catalog_views

View File

@ -1,3 +1,4 @@
test: enable_ddl_propagation
test: multi_test_helpers multi_test_helpers_superuser columnar_test_helpers test: multi_test_helpers multi_test_helpers_superuser columnar_test_helpers
test: multi_cluster_management test: multi_cluster_management
test: multi_test_catalog_views test: multi_test_catalog_views

View File

@ -4,6 +4,7 @@ test: isolation_setup
# isolation_cluster_management such that tests # isolation_cluster_management such that tests
# that come later can be parallelized # that come later can be parallelized
test: isolation_cluster_management test: isolation_cluster_management
test: isolation_enable_ddl_propagation
test: isolation_logical_replication_single_shard_commands test: isolation_logical_replication_single_shard_commands
test: isolation_logical_replication_nonsu_nonbypassrls test: isolation_logical_replication_nonsu_nonbypassrls

View File

@ -4,6 +4,7 @@ test: isolation_setup
# isolation_cluster_management such that tests # isolation_cluster_management such that tests
# that come later can be parallelized # that come later can be parallelized
test: isolation_cluster_management test: isolation_cluster_management
test: isolation_enable_ddl_propagation
test: isolation_logical_replication_single_shard_commands_on_mx test: isolation_logical_replication_single_shard_commands_on_mx
test: isolation_logical_replication_multi_shard_commands_on_mx test: isolation_logical_replication_multi_shard_commands_on_mx

View File

@ -4,6 +4,7 @@ test: isolation_setup
# isolation_cluster_management such that tests # isolation_cluster_management such that tests
# that come later can be parallelized # that come later can be parallelized
test: isolation_cluster_management test: isolation_cluster_management
test: isolation_enable_ddl_propagation
test: isolation_logical_replication_with_partitioning test: isolation_logical_replication_with_partitioning
test: isolation_logical_replication_binaryless test: isolation_logical_replication_binaryless

View File

@ -4,6 +4,7 @@ test: isolation_setup
# isolation_cluster_management such that tests # isolation_cluster_management such that tests
# that come later can be parallelized # that come later can be parallelized
test: isolation_cluster_management test: isolation_cluster_management
test: isolation_enable_ddl_propagation
test: isolation_move_placement_vs_move_placement test: isolation_move_placement_vs_move_placement
test: isolation_move_placement_vs_modification test: isolation_move_placement_vs_modification

View File

@ -1,5 +1,6 @@
# should come before multi_cluster_management # should come before multi_cluster_management
# as it touches node metadata # as it touches node metadata
test: enable_ddl_propagation
test: single_node_enterprise test: single_node_enterprise
test: multi_test_helpers multi_test_helpers_superuser test: multi_test_helpers multi_test_helpers_superuser

View File

@ -1,23 +1,14 @@
ALTER SYSTEM SET citus.enable_ddl_propagation = 'true'; SELECT run_command_on_workers('ALTER SYSTEM SET citus.enable_ddl_propagation TO ON');
SELECT pg_reload_conf(); run_command_on_workers
pg_reload_conf
--------------------------------------------------------------------- ---------------------------------------------------------------------
t (localhost,57637,t,"ALTER SYSTEM")
(1 row) (localhost,57638,t,"ALTER SYSTEM")
(2 rows)
\c - - - :worker_1_port SELECT run_command_on_workers('SELECT pg_reload_conf()');
ALTER SYSTEM SET citus.enable_ddl_propagation = 'true'; run_command_on_workers
SELECT pg_reload_conf();
pg_reload_conf
--------------------------------------------------------------------- ---------------------------------------------------------------------
t (localhost,57637,t,t)
(1 row) (localhost,57638,t,t)
(2 rows)
\c - - - :worker_2_port
ALTER SYSTEM SET citus.enable_ddl_propagation = 'true';
SELECT pg_reload_conf();
pg_reload_conf
---------------------------------------------------------------------
t
(1 row)

View File

@ -1,28 +1,3 @@
-- File to create functions and helpers needed for subsequent tests
ALTER SYSTEM SET citus.enable_ddl_propagation = 'true';
SELECT pg_reload_conf();
pg_reload_conf
---------------------------------------------------------------------
t
(1 row)
\c - - - :worker_1_port
ALTER SYSTEM SET citus.enable_ddl_propagation = 'true';
SELECT pg_reload_conf();
pg_reload_conf
---------------------------------------------------------------------
t
(1 row)
\c - - - :worker_2_port
ALTER SYSTEM SET citus.enable_ddl_propagation = 'true';
SELECT pg_reload_conf();
pg_reload_conf
---------------------------------------------------------------------
t
(1 row)
\c - - - :master_port
-- 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

@ -1,4 +1,5 @@
# import this file (from psql you can use \i) to use mitmproxy manually # import this file (from psql you can use \i) to use mitmproxy manually
test: enable_ddl_propagation
test: failure_test_helpers test: failure_test_helpers
# this should only be run by pg_regress_multi, you don't need it # this should only be run by pg_regress_multi, you don't need it

View File

@ -1,4 +1,3 @@
test: isolation_enable_ddl_propagation
test: isolation_setup test: isolation_setup
test: isolation_add_remove_node test: isolation_add_remove_node
test: isolation_update_node test: isolation_update_node
@ -15,6 +14,7 @@ test: isolation_extension_commands
# isolation_cluster_management such that tests # isolation_cluster_management such that tests
# that come later can be parallelized # that come later can be parallelized
test: isolation_cluster_management test: isolation_cluster_management
test: isolation_enable_ddl_propagation
# the following tests depend on the distributed # the following tests depend on the distributed
# transactionId, so should not be parallelized # transactionId, so should not be parallelized

View File

@ -1,2 +1,3 @@
test: minimal_cluster_management test: minimal_cluster_management
test: enable_ddl_propagation
test: multi_test_helpers multi_test_helpers_superuser multi_create_fdw columnar_test_helpers multi_test_catalog_views tablespace test: multi_test_helpers multi_test_helpers_superuser multi_create_fdw columnar_test_helpers multi_test_catalog_views tablespace

View File

@ -1,3 +1,4 @@
test: enable_ddl_propagation
test: multi_test_helpers multi_test_helpers_superuser test: multi_test_helpers multi_test_helpers_superuser
test: multi_cluster_management test: multi_cluster_management
test: create_role_propagation test: create_role_propagation

View File

@ -1,11 +1,2 @@
ALTER SYSTEM SET citus.enable_ddl_propagation = 'true'; SELECT run_command_on_workers('ALTER SYSTEM SET citus.enable_ddl_propagation TO ON');
SELECT pg_reload_conf(); SELECT run_command_on_workers('SELECT pg_reload_conf()');
\c - - - :worker_1_port
ALTER SYSTEM SET citus.enable_ddl_propagation = 'true';
SELECT pg_reload_conf();
\c - - - :worker_2_port
ALTER SYSTEM SET citus.enable_ddl_propagation = 'true';
SELECT pg_reload_conf();

View File

@ -1,16 +1,3 @@
ALTER SYSTEM SET citus.enable_ddl_propagation = 'true';
SELECT pg_reload_conf();
\c - - - :worker_1_port
ALTER SYSTEM SET citus.enable_ddl_propagation = 'true';
SELECT pg_reload_conf();
\c - - - :worker_2_port
ALTER SYSTEM SET citus.enable_ddl_propagation = 'true';
SELECT pg_reload_conf();
\c - - - :master_port
SET citus.next_shard_id TO 1220000; SET citus.next_shard_id TO 1220000;
ALTER SEQUENCE pg_catalog.pg_dist_colocationid_seq RESTART 1390000; ALTER SEQUENCE pg_catalog.pg_dist_colocationid_seq RESTART 1390000;
ALTER SEQUENCE pg_catalog.pg_dist_groupid_seq RESTART 1; ALTER SEQUENCE pg_catalog.pg_dist_groupid_seq RESTART 1;

View File

@ -1,17 +1,5 @@
-- File to create functions and helpers needed for subsequent tests -- File to create functions and helpers needed for subsequent tests
ALTER SYSTEM SET citus.enable_ddl_propagation = 'true';
SELECT pg_reload_conf();
\c - - - :worker_1_port
ALTER SYSTEM SET citus.enable_ddl_propagation = 'true';
SELECT pg_reload_conf();
\c - - - :worker_2_port
ALTER SYSTEM SET citus.enable_ddl_propagation = 'true';
SELECT pg_reload_conf();
\c - - - :master_port
-- 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

@ -1,19 +1,6 @@
-- we already have lots of tests targeting -- we already have lots of tests targeting
-- single node citus clusters in sql/single_node.sql -- single node citus clusters in sql/single_node.sql
-- in this file, we are testing enterprise features -- in this file, we are testing enterprise features
ALTER SYSTEM SET citus.enable_ddl_propagation = 'true';
SELECT pg_reload_conf();
\c - - - :worker_1_port
ALTER SYSTEM SET citus.enable_ddl_propagation = 'true';
SELECT pg_reload_conf();
\c - - - :worker_2_port
ALTER SYSTEM SET citus.enable_ddl_propagation = 'true';
SELECT pg_reload_conf();
\c - - - :master_port
CREATE SCHEMA single_node_ent; CREATE SCHEMA single_node_ent;
SET search_path TO single_node_ent; SET search_path TO single_node_ent;
SET citus.shard_count TO 4; SET citus.shard_count TO 4;