mirror of https://github.com/citusdata/citus.git
Uses enable_ddl_propagation file
parent
35c808e120
commit
1f0ec0fc90
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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)
|
|
||||||
|
|
||||||
|
|
|
@ -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 $$
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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();
|
|
||||||
|
|
||||||
|
|
|
@ -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;
|
||||||
|
|
|
@ -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 $$
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue