Merge pull request #5514 from citusdata/turn_metadata_sync_on_in_mx_schedule

Turn metadata sync on in mx schedule
pull/5502/head
Halil Ozan Akgül 2021-12-08 10:31:42 +03:00 committed by GitHub
commit a7fc79860f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 9 additions and 5 deletions

View File

@ -493,6 +493,7 @@ SELECT * FROM multi_extension.print_extension_changes();
ALTER EXTENSION citus UPDATE TO '9.5-1';
BEGIN;
SELECT master_add_node('localhost', :master_port, groupId=>0);
NOTICE: localhost:xxxxx is the coordinator and already contains metadata, skipping syncing the metadata
master_add_node
---------------------------------------------------------------------
1
@ -1222,6 +1223,9 @@ HINT: You can manually create a database and its extensions on workers.
\c - - - :master_port
\c another
CREATE EXTENSION citus;
\c - - - :worker_1_port
CREATE EXTENSION citus;
\c - - - :master_port
SET citus.enable_object_propagation TO off; -- prevent distributed transactions during add node
SELECT FROM master_add_node('localhost', :worker_1_port);
WARNING: citus.enable_object_propagation is off, not creating distributed objects on worker
@ -1230,7 +1234,6 @@ DETAIL: distributed objects are only kept in sync when citus.enable_object_prop
(1 row)
\c - - - :worker_1_port
CREATE EXTENSION citus;
ALTER FUNCTION assign_distributed_transaction_id(initiator_node_identifier integer, transaction_number bigint, transaction_stamp timestamp with time zone)
RENAME TO dummy_assign_function;
\c - - - :master_port

View File

@ -15,8 +15,8 @@
# ---
# Tests around schema changes, these are run first, so there's no preexisting objects.
# ---
test: turn_mx_off
test: multi_extension
test: turn_mx_off
test: single_node
test: single_node_truncate
test: turn_mx_on

View File

@ -13,10 +13,8 @@
# ---
# Tests around schema changes, these are run first, so there's no preexisting objects.
# ---
test: turn_mx_off
test: multi_extension
test: multi_test_helpers multi_test_helpers_superuser
test: turn_mx_on
test: multi_mx_node_metadata
test: multi_cluster_management
test: multi_mx_function_table_reference

View File

@ -634,11 +634,14 @@ CREATE DATABASE another;
\c another
CREATE EXTENSION citus;
\c - - - :worker_1_port
CREATE EXTENSION citus;
\c - - - :master_port
SET citus.enable_object_propagation TO off; -- prevent distributed transactions during add node
SELECT FROM master_add_node('localhost', :worker_1_port);
\c - - - :worker_1_port
CREATE EXTENSION citus;
ALTER FUNCTION assign_distributed_transaction_id(initiator_node_identifier integer, transaction_number bigint, transaction_stamp timestamp with time zone)
RENAME TO dummy_assign_function;