mirror of https://github.com/citusdata/citus.git
Fix metadata sync fails in multi_extension
parent
a3834edeaa
commit
4f272ea0e5
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue