mirror of https://github.com/citusdata/citus.git
parent
4acca9b9fe
commit
897ec1bdeb
|
@ -41,16 +41,16 @@ step s3-view-worker:
|
||||||
|
|
||||||
query query_hostname query_hostport master_query_host_namemaster_query_host_portstate wait_event_typewait_event usename datname
|
query query_hostname query_hostport master_query_host_namemaster_query_host_portstate wait_event_typewait_event usename datname
|
||||||
|
|
||||||
SELECT worker_apply_shard_ddl_command (102197, 'public', '
|
SELECT worker_apply_shard_ddl_command (102217, 'public', '
|
||||||
ALTER TABLE test_table ADD COLUMN x INT;
|
ALTER TABLE test_table ADD COLUMN x INT;
|
||||||
')localhost 57638 coordinator_host57636 idle in transactionClient ClientRead postgres regression
|
')localhost 57638 coordinator_host57636 idle in transactionClient ClientRead postgres regression
|
||||||
SELECT worker_apply_shard_ddl_command (102196, 'public', '
|
SELECT worker_apply_shard_ddl_command (102216, 'public', '
|
||||||
ALTER TABLE test_table ADD COLUMN x INT;
|
ALTER TABLE test_table ADD COLUMN x INT;
|
||||||
')localhost 57637 coordinator_host57636 idle in transactionClient ClientRead postgres regression
|
')localhost 57637 coordinator_host57636 idle in transactionClient ClientRead postgres regression
|
||||||
SELECT worker_apply_shard_ddl_command (102195, 'public', '
|
SELECT worker_apply_shard_ddl_command (102215, 'public', '
|
||||||
ALTER TABLE test_table ADD COLUMN x INT;
|
ALTER TABLE test_table ADD COLUMN x INT;
|
||||||
')localhost 57638 coordinator_host57636 idle in transactionClient ClientRead postgres regression
|
')localhost 57638 coordinator_host57636 idle in transactionClient ClientRead postgres regression
|
||||||
SELECT worker_apply_shard_ddl_command (102194, 'public', '
|
SELECT worker_apply_shard_ddl_command (102214, 'public', '
|
||||||
ALTER TABLE test_table ADD COLUMN x INT;
|
ALTER TABLE test_table ADD COLUMN x INT;
|
||||||
')localhost 57637 coordinator_host57636 idle in transactionClient ClientRead postgres regression
|
')localhost 57637 coordinator_host57636 idle in transactionClient ClientRead postgres regression
|
||||||
step s2-rollback:
|
step s2-rollback:
|
||||||
|
@ -104,7 +104,7 @@ step s3-view-worker:
|
||||||
|
|
||||||
query query_hostname query_hostport master_query_host_namemaster_query_host_portstate wait_event_typewait_event usename datname
|
query query_hostname query_hostport master_query_host_namemaster_query_host_portstate wait_event_typewait_event usename datname
|
||||||
|
|
||||||
INSERT INTO public.test_table_102200 (column1, column2) VALUES (100, 100)localhost 57637 coordinator_host57636 idle in transactionClient ClientRead postgres regression
|
INSERT INTO public.test_table_102220 (column1, column2) VALUES (100, 100)localhost 57637 coordinator_host57636 idle in transactionClient ClientRead postgres regression
|
||||||
step s2-rollback:
|
step s2-rollback:
|
||||||
ROLLBACK;
|
ROLLBACK;
|
||||||
|
|
||||||
|
@ -159,10 +159,10 @@ step s3-view-worker:
|
||||||
|
|
||||||
query query_hostname query_hostport master_query_host_namemaster_query_host_portstate wait_event_typewait_event usename datname
|
query query_hostname query_hostport master_query_host_namemaster_query_host_portstate wait_event_typewait_event usename datname
|
||||||
|
|
||||||
SELECT count(*) AS count FROM test_table_102205 test_table WHERE truelocalhost 57638 coordinator_host57636 idle in transactionClient ClientRead postgres regression
|
SELECT count(*) AS count FROM test_table_102225 test_table WHERE truelocalhost 57638 coordinator_host57636 idle in transactionClient ClientRead postgres regression
|
||||||
SELECT count(*) AS count FROM test_table_102204 test_table WHERE truelocalhost 57637 coordinator_host57636 idle in transactionClient ClientRead postgres regression
|
SELECT count(*) AS count FROM test_table_102224 test_table WHERE truelocalhost 57637 coordinator_host57636 idle in transactionClient ClientRead postgres regression
|
||||||
SELECT count(*) AS count FROM test_table_102203 test_table WHERE truelocalhost 57638 coordinator_host57636 idle in transactionClient ClientRead postgres regression
|
SELECT count(*) AS count FROM test_table_102223 test_table WHERE truelocalhost 57638 coordinator_host57636 idle in transactionClient ClientRead postgres regression
|
||||||
SELECT count(*) AS count FROM test_table_102202 test_table WHERE truelocalhost 57637 coordinator_host57636 idle in transactionClient ClientRead postgres regression
|
SELECT count(*) AS count FROM test_table_102222 test_table WHERE truelocalhost 57637 coordinator_host57636 idle in transactionClient ClientRead postgres regression
|
||||||
step s2-rollback:
|
step s2-rollback:
|
||||||
ROLLBACK;
|
ROLLBACK;
|
||||||
|
|
||||||
|
@ -217,7 +217,7 @@ step s3-view-worker:
|
||||||
|
|
||||||
query query_hostname query_hostport master_query_host_namemaster_query_host_portstate wait_event_typewait_event usename datname
|
query query_hostname query_hostport master_query_host_namemaster_query_host_portstate wait_event_typewait_event usename datname
|
||||||
|
|
||||||
SELECT count(*) AS count FROM public.test_table_102207 test_table WHERE (column1 OPERATOR(pg_catalog.=) 55)localhost 57638 coordinator_host57636 idle in transactionClient ClientRead postgres regression
|
SELECT count(*) AS count FROM public.test_table_102227 test_table WHERE (column1 OPERATOR(pg_catalog.=) 55)localhost 57638 coordinator_host57636 idle in transactionClient ClientRead postgres regression
|
||||||
step s2-rollback:
|
step s2-rollback:
|
||||||
ROLLBACK;
|
ROLLBACK;
|
||||||
|
|
||||||
|
|
|
@ -41,16 +41,16 @@ step s3-view-worker:
|
||||||
|
|
||||||
query query_hostname query_hostport master_query_host_namemaster_query_host_portstate wait_event_typewait_event usename datname
|
query query_hostname query_hostport master_query_host_namemaster_query_host_portstate wait_event_typewait_event usename datname
|
||||||
|
|
||||||
SELECT worker_apply_shard_ddl_command (102197, 'public', '
|
SELECT worker_apply_shard_ddl_command (102217, 'public', '
|
||||||
ALTER TABLE test_table ADD COLUMN x INT;
|
ALTER TABLE test_table ADD COLUMN x INT;
|
||||||
')localhost 57638 coordinator_host57636 idle in transactionClient ClientRead postgres regression
|
')localhost 57638 coordinator_host57636 idle in transactionClient ClientRead postgres regression
|
||||||
SELECT worker_apply_shard_ddl_command (102196, 'public', '
|
SELECT worker_apply_shard_ddl_command (102216, 'public', '
|
||||||
ALTER TABLE test_table ADD COLUMN x INT;
|
ALTER TABLE test_table ADD COLUMN x INT;
|
||||||
')localhost 57637 coordinator_host57636 idle in transactionClient ClientRead postgres regression
|
')localhost 57637 coordinator_host57636 idle in transactionClient ClientRead postgres regression
|
||||||
SELECT worker_apply_shard_ddl_command (102195, 'public', '
|
SELECT worker_apply_shard_ddl_command (102215, 'public', '
|
||||||
ALTER TABLE test_table ADD COLUMN x INT;
|
ALTER TABLE test_table ADD COLUMN x INT;
|
||||||
')localhost 57638 coordinator_host57636 idle in transactionClient ClientRead postgres regression
|
')localhost 57638 coordinator_host57636 idle in transactionClient ClientRead postgres regression
|
||||||
SELECT worker_apply_shard_ddl_command (102194, 'public', '
|
SELECT worker_apply_shard_ddl_command (102214, 'public', '
|
||||||
ALTER TABLE test_table ADD COLUMN x INT;
|
ALTER TABLE test_table ADD COLUMN x INT;
|
||||||
')localhost 57637 coordinator_host57636 idle in transactionClient ClientRead postgres regression
|
')localhost 57637 coordinator_host57636 idle in transactionClient ClientRead postgres regression
|
||||||
step s2-rollback:
|
step s2-rollback:
|
||||||
|
@ -104,7 +104,7 @@ step s3-view-worker:
|
||||||
|
|
||||||
query query_hostname query_hostport master_query_host_namemaster_query_host_portstate wait_event_typewait_event usename datname
|
query query_hostname query_hostport master_query_host_namemaster_query_host_portstate wait_event_typewait_event usename datname
|
||||||
|
|
||||||
INSERT INTO public.test_table_102200 (column1, column2) VALUES (100, 100)localhost 57637 coordinator_host57636 idle in transactionClient ClientRead postgres regression
|
INSERT INTO public.test_table_102220 (column1, column2) VALUES (100, 100)localhost 57637 coordinator_host57636 idle in transactionClient ClientRead postgres regression
|
||||||
step s2-rollback:
|
step s2-rollback:
|
||||||
ROLLBACK;
|
ROLLBACK;
|
||||||
|
|
||||||
|
@ -159,10 +159,10 @@ step s3-view-worker:
|
||||||
|
|
||||||
query query_hostname query_hostport master_query_host_namemaster_query_host_portstate wait_event_typewait_event usename datname
|
query query_hostname query_hostport master_query_host_namemaster_query_host_portstate wait_event_typewait_event usename datname
|
||||||
|
|
||||||
COPY (SELECT count(*) AS count FROM test_table_102205 test_table WHERE true) TO STDOUTlocalhost 57638 coordinator_host57636 idle in transactionClient ClientRead postgres regression
|
COPY (SELECT count(*) AS count FROM test_table_102225 test_table WHERE true) TO STDOUTlocalhost 57638 coordinator_host57636 idle in transactionClient ClientRead postgres regression
|
||||||
COPY (SELECT count(*) AS count FROM test_table_102204 test_table WHERE true) TO STDOUTlocalhost 57637 coordinator_host57636 idle in transactionClient ClientRead postgres regression
|
COPY (SELECT count(*) AS count FROM test_table_102224 test_table WHERE true) TO STDOUTlocalhost 57637 coordinator_host57636 idle in transactionClient ClientRead postgres regression
|
||||||
COPY (SELECT count(*) AS count FROM test_table_102203 test_table WHERE true) TO STDOUTlocalhost 57638 coordinator_host57636 idle in transactionClient ClientRead postgres regression
|
COPY (SELECT count(*) AS count FROM test_table_102223 test_table WHERE true) TO STDOUTlocalhost 57638 coordinator_host57636 idle in transactionClient ClientRead postgres regression
|
||||||
COPY (SELECT count(*) AS count FROM test_table_102202 test_table WHERE true) TO STDOUTlocalhost 57637 coordinator_host57636 idle in transactionClient ClientRead postgres regression
|
COPY (SELECT count(*) AS count FROM test_table_102222 test_table WHERE true) TO STDOUTlocalhost 57637 coordinator_host57636 idle in transactionClient ClientRead postgres regression
|
||||||
step s2-rollback:
|
step s2-rollback:
|
||||||
ROLLBACK;
|
ROLLBACK;
|
||||||
|
|
||||||
|
@ -217,7 +217,7 @@ step s3-view-worker:
|
||||||
|
|
||||||
query query_hostname query_hostport master_query_host_namemaster_query_host_portstate wait_event_typewait_event usename datname
|
query query_hostname query_hostport master_query_host_namemaster_query_host_portstate wait_event_typewait_event usename datname
|
||||||
|
|
||||||
SELECT count(*) AS count FROM public.test_table_102207 test_table WHERE (column1 OPERATOR(pg_catalog.=) 55)localhost 57638 0 idle Client ClientRead postgres regression
|
SELECT count(*) AS count FROM public.test_table_102227 test_table WHERE (column1 OPERATOR(pg_catalog.=) 55)localhost 57638 0 idle Client ClientRead postgres regression
|
||||||
step s2-rollback:
|
step s2-rollback:
|
||||||
ROLLBACK;
|
ROLLBACK;
|
||||||
|
|
||||||
|
|
|
@ -29,11 +29,11 @@ step detector-dump-wait-edges:
|
||||||
|
|
||||||
waiting_transaction_numblocking_transaction_numblocking_transaction_waiting
|
waiting_transaction_numblocking_transaction_numblocking_transaction_waiting
|
||||||
|
|
||||||
269 268 f
|
282 281 f
|
||||||
transactionnumberwaitingtransactionnumbers
|
transactionnumberwaitingtransactionnumbers
|
||||||
|
|
||||||
268
|
281
|
||||||
269 268
|
282 281
|
||||||
step s1-abort:
|
step s1-abort:
|
||||||
ABORT;
|
ABORT;
|
||||||
|
|
||||||
|
@ -77,14 +77,14 @@ step detector-dump-wait-edges:
|
||||||
|
|
||||||
waiting_transaction_numblocking_transaction_numblocking_transaction_waiting
|
waiting_transaction_numblocking_transaction_numblocking_transaction_waiting
|
||||||
|
|
||||||
273 272 f
|
286 285 f
|
||||||
274 272 f
|
287 285 f
|
||||||
274 273 t
|
287 286 t
|
||||||
transactionnumberwaitingtransactionnumbers
|
transactionnumberwaitingtransactionnumbers
|
||||||
|
|
||||||
272
|
285
|
||||||
273 272
|
286 285
|
||||||
274 272,273
|
287 285,286
|
||||||
step s1-abort:
|
step s1-abort:
|
||||||
ABORT;
|
ABORT;
|
||||||
|
|
||||||
|
|
|
@ -29,11 +29,11 @@ step detector-dump-wait-edges:
|
||||||
|
|
||||||
waiting_transaction_numblocking_transaction_numblocking_transaction_waiting
|
waiting_transaction_numblocking_transaction_numblocking_transaction_waiting
|
||||||
|
|
||||||
270 269 f
|
283 282 f
|
||||||
transactionnumberwaitingtransactionnumbers
|
transactionnumberwaitingtransactionnumbers
|
||||||
|
|
||||||
269
|
282
|
||||||
270 269
|
283 282
|
||||||
step s1-abort:
|
step s1-abort:
|
||||||
ABORT;
|
ABORT;
|
||||||
|
|
||||||
|
@ -77,14 +77,14 @@ step detector-dump-wait-edges:
|
||||||
|
|
||||||
waiting_transaction_numblocking_transaction_numblocking_transaction_waiting
|
waiting_transaction_numblocking_transaction_numblocking_transaction_waiting
|
||||||
|
|
||||||
274 273 f
|
287 286 f
|
||||||
275 273 f
|
288 286 f
|
||||||
275 274 t
|
288 287 t
|
||||||
transactionnumberwaitingtransactionnumbers
|
transactionnumberwaitingtransactionnumbers
|
||||||
|
|
||||||
273
|
286
|
||||||
274 273
|
287 286
|
||||||
275 273,274
|
288 286,287
|
||||||
step s1-abort:
|
step s1-abort:
|
||||||
ABORT;
|
ABORT;
|
||||||
|
|
||||||
|
|
|
@ -911,6 +911,174 @@ master_remove_node
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
starting permutation: s1-print-distributed-objects s2-create-schema s1-begin s2-begin s3-begin s4-begin s1-add-worker s2-create-table s3-use-schema s3-create-table s4-use-schema s4-create-table s1-commit s2-commit s3-commit s4-commit s2-print-distributed-objects
|
||||||
|
?column?
|
||||||
|
|
||||||
|
1
|
||||||
|
step s1-print-distributed-objects:
|
||||||
|
SELECT 1 FROM master_add_node('localhost', 57638);
|
||||||
|
|
||||||
|
-- print an overview of all distributed objects
|
||||||
|
SELECT pg_identify_object_as_address(classid, objid, objsubid) FROM citus.pg_dist_object ORDER BY 1;
|
||||||
|
|
||||||
|
-- print if the schema has been created
|
||||||
|
SELECT count(*) FROM pg_namespace where nspname = 'myschema';
|
||||||
|
SELECT run_command_on_workers($$SELECT count(*) FROM pg_namespace where nspname = 'myschema';$$);
|
||||||
|
|
||||||
|
-- print if the type has been created
|
||||||
|
SELECT count(*) FROM pg_type where typname = 'tt1';
|
||||||
|
SELECT run_command_on_workers($$SELECT count(*) FROM pg_type where typname = 'tt1';$$);
|
||||||
|
|
||||||
|
-- print if the function has been created
|
||||||
|
SELECT count(*) FROM pg_proc WHERE proname='add';
|
||||||
|
SELECT run_command_on_workers($$SELECT count(*) FROM pg_proc WHERE proname='add';$$);
|
||||||
|
|
||||||
|
SELECT master_remove_node('localhost', 57638);
|
||||||
|
|
||||||
|
?column?
|
||||||
|
|
||||||
|
1
|
||||||
|
pg_identify_object_as_address
|
||||||
|
|
||||||
|
count
|
||||||
|
|
||||||
|
0
|
||||||
|
run_command_on_workers
|
||||||
|
|
||||||
|
(localhost,57637,t,0)
|
||||||
|
(localhost,57638,t,0)
|
||||||
|
count
|
||||||
|
|
||||||
|
0
|
||||||
|
run_command_on_workers
|
||||||
|
|
||||||
|
(localhost,57637,t,0)
|
||||||
|
(localhost,57638,t,0)
|
||||||
|
count
|
||||||
|
|
||||||
|
0
|
||||||
|
run_command_on_workers
|
||||||
|
|
||||||
|
(localhost,57637,t,0)
|
||||||
|
(localhost,57638,t,0)
|
||||||
|
master_remove_node
|
||||||
|
|
||||||
|
|
||||||
|
step s2-create-schema:
|
||||||
|
CREATE SCHEMA myschema;
|
||||||
|
SET search_path TO myschema;
|
||||||
|
|
||||||
|
step s1-begin:
|
||||||
|
BEGIN;
|
||||||
|
|
||||||
|
step s2-begin:
|
||||||
|
BEGIN;
|
||||||
|
|
||||||
|
step s3-begin:
|
||||||
|
BEGIN;
|
||||||
|
|
||||||
|
step s4-begin:
|
||||||
|
BEGIN;
|
||||||
|
|
||||||
|
step s1-add-worker:
|
||||||
|
SELECT 1 FROM master_add_node('localhost', 57638);
|
||||||
|
|
||||||
|
?column?
|
||||||
|
|
||||||
|
1
|
||||||
|
step s2-create-table:
|
||||||
|
CREATE TABLE t1 (a int, b int);
|
||||||
|
-- session needs to have replication factor set to 1, can't do in setup
|
||||||
|
SET citus.shard_replication_factor TO 1;
|
||||||
|
SELECT create_distributed_table('t1', 'a');
|
||||||
|
<waiting ...>
|
||||||
|
step s3-use-schema:
|
||||||
|
SET search_path TO myschema;
|
||||||
|
|
||||||
|
step s3-create-table:
|
||||||
|
CREATE TABLE t2 (a int, b int);
|
||||||
|
-- session needs to have replication factor set to 1, can't do in setup
|
||||||
|
SET citus.shard_replication_factor TO 1;
|
||||||
|
SELECT create_distributed_table('t2', 'a');
|
||||||
|
<waiting ...>
|
||||||
|
step s4-use-schema:
|
||||||
|
SET search_path TO myschema;
|
||||||
|
|
||||||
|
step s4-create-table:
|
||||||
|
CREATE TABLE t3 (a int, b int);
|
||||||
|
-- session needs to have replication factor set to 1, can't do in setup
|
||||||
|
SET citus.shard_replication_factor TO 1;
|
||||||
|
SELECT create_distributed_table('t3', 'a');
|
||||||
|
<waiting ...>
|
||||||
|
step s1-commit:
|
||||||
|
COMMIT;
|
||||||
|
|
||||||
|
step s2-create-table: <... completed>
|
||||||
|
create_distributed_table
|
||||||
|
|
||||||
|
|
||||||
|
step s2-commit:
|
||||||
|
COMMIT;
|
||||||
|
|
||||||
|
step s3-create-table: <... completed>
|
||||||
|
create_distributed_table
|
||||||
|
|
||||||
|
|
||||||
|
step s4-create-table: <... completed>
|
||||||
|
create_distributed_table
|
||||||
|
|
||||||
|
|
||||||
|
step s3-commit:
|
||||||
|
COMMIT;
|
||||||
|
|
||||||
|
step s4-commit:
|
||||||
|
COMMIT;
|
||||||
|
|
||||||
|
step s2-print-distributed-objects:
|
||||||
|
-- print an overview of all distributed objects
|
||||||
|
SELECT pg_identify_object_as_address(classid, objid, objsubid) FROM citus.pg_dist_object ORDER BY 1;
|
||||||
|
|
||||||
|
-- print if the schema has been created
|
||||||
|
SELECT count(*) FROM pg_namespace where nspname = 'myschema';
|
||||||
|
SELECT run_command_on_workers($$SELECT count(*) FROM pg_namespace where nspname = 'myschema';$$);
|
||||||
|
|
||||||
|
-- print if the type has been created
|
||||||
|
SELECT count(*) FROM pg_type where typname = 'tt1';
|
||||||
|
SELECT run_command_on_workers($$SELECT count(*) FROM pg_type where typname = 'tt1';$$);
|
||||||
|
|
||||||
|
-- print if the function has been created
|
||||||
|
SELECT count(*) FROM pg_proc WHERE proname='add';
|
||||||
|
SELECT run_command_on_workers($$SELECT count(*) FROM pg_proc WHERE proname='add';$$);
|
||||||
|
|
||||||
|
pg_identify_object_as_address
|
||||||
|
|
||||||
|
(schema,{myschema},{})
|
||||||
|
count
|
||||||
|
|
||||||
|
1
|
||||||
|
run_command_on_workers
|
||||||
|
|
||||||
|
(localhost,57637,t,1)
|
||||||
|
(localhost,57638,t,1)
|
||||||
|
count
|
||||||
|
|
||||||
|
0
|
||||||
|
run_command_on_workers
|
||||||
|
|
||||||
|
(localhost,57637,t,0)
|
||||||
|
(localhost,57638,t,0)
|
||||||
|
count
|
||||||
|
|
||||||
|
0
|
||||||
|
run_command_on_workers
|
||||||
|
|
||||||
|
(localhost,57637,t,0)
|
||||||
|
(localhost,57638,t,0)
|
||||||
|
master_remove_node
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
starting permutation: s1-print-distributed-objects s1-add-worker s2-create-schema s2-begin s3-begin s3-use-schema s2-create-table s3-create-table s2-commit s3-commit s2-print-distributed-objects
|
starting permutation: s1-print-distributed-objects s1-add-worker s2-create-schema s2-begin s3-begin s3-use-schema s2-create-table s3-create-table s2-commit s3-commit s2-print-distributed-objects
|
||||||
?column?
|
?column?
|
||||||
|
|
||||||
|
@ -1053,6 +1221,157 @@ master_remove_node
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
starting permutation: s1-print-distributed-objects s1-begin s2-begin s4-begin s1-add-worker s2-create-schema s4-create-schema2 s2-create-table s4-create-table s1-commit s2-commit s4-commit s2-print-distributed-objects
|
||||||
|
?column?
|
||||||
|
|
||||||
|
1
|
||||||
|
step s1-print-distributed-objects:
|
||||||
|
SELECT 1 FROM master_add_node('localhost', 57638);
|
||||||
|
|
||||||
|
-- print an overview of all distributed objects
|
||||||
|
SELECT pg_identify_object_as_address(classid, objid, objsubid) FROM citus.pg_dist_object ORDER BY 1;
|
||||||
|
|
||||||
|
-- print if the schema has been created
|
||||||
|
SELECT count(*) FROM pg_namespace where nspname = 'myschema';
|
||||||
|
SELECT run_command_on_workers($$SELECT count(*) FROM pg_namespace where nspname = 'myschema';$$);
|
||||||
|
|
||||||
|
-- print if the type has been created
|
||||||
|
SELECT count(*) FROM pg_type where typname = 'tt1';
|
||||||
|
SELECT run_command_on_workers($$SELECT count(*) FROM pg_type where typname = 'tt1';$$);
|
||||||
|
|
||||||
|
-- print if the function has been created
|
||||||
|
SELECT count(*) FROM pg_proc WHERE proname='add';
|
||||||
|
SELECT run_command_on_workers($$SELECT count(*) FROM pg_proc WHERE proname='add';$$);
|
||||||
|
|
||||||
|
SELECT master_remove_node('localhost', 57638);
|
||||||
|
|
||||||
|
?column?
|
||||||
|
|
||||||
|
1
|
||||||
|
pg_identify_object_as_address
|
||||||
|
|
||||||
|
count
|
||||||
|
|
||||||
|
0
|
||||||
|
run_command_on_workers
|
||||||
|
|
||||||
|
(localhost,57637,t,0)
|
||||||
|
(localhost,57638,t,0)
|
||||||
|
count
|
||||||
|
|
||||||
|
0
|
||||||
|
run_command_on_workers
|
||||||
|
|
||||||
|
(localhost,57637,t,0)
|
||||||
|
(localhost,57638,t,0)
|
||||||
|
count
|
||||||
|
|
||||||
|
0
|
||||||
|
run_command_on_workers
|
||||||
|
|
||||||
|
(localhost,57637,t,0)
|
||||||
|
(localhost,57638,t,0)
|
||||||
|
master_remove_node
|
||||||
|
|
||||||
|
|
||||||
|
step s1-begin:
|
||||||
|
BEGIN;
|
||||||
|
|
||||||
|
step s2-begin:
|
||||||
|
BEGIN;
|
||||||
|
|
||||||
|
step s4-begin:
|
||||||
|
BEGIN;
|
||||||
|
|
||||||
|
step s1-add-worker:
|
||||||
|
SELECT 1 FROM master_add_node('localhost', 57638);
|
||||||
|
|
||||||
|
?column?
|
||||||
|
|
||||||
|
1
|
||||||
|
step s2-create-schema:
|
||||||
|
CREATE SCHEMA myschema;
|
||||||
|
SET search_path TO myschema;
|
||||||
|
|
||||||
|
step s4-create-schema2:
|
||||||
|
CREATE SCHEMA myschema2;
|
||||||
|
SET search_path TO myschema2;
|
||||||
|
|
||||||
|
step s2-create-table:
|
||||||
|
CREATE TABLE t1 (a int, b int);
|
||||||
|
-- session needs to have replication factor set to 1, can't do in setup
|
||||||
|
SET citus.shard_replication_factor TO 1;
|
||||||
|
SELECT create_distributed_table('t1', 'a');
|
||||||
|
<waiting ...>
|
||||||
|
step s4-create-table:
|
||||||
|
CREATE TABLE t3 (a int, b int);
|
||||||
|
-- session needs to have replication factor set to 1, can't do in setup
|
||||||
|
SET citus.shard_replication_factor TO 1;
|
||||||
|
SELECT create_distributed_table('t3', 'a');
|
||||||
|
<waiting ...>
|
||||||
|
step s1-commit:
|
||||||
|
COMMIT;
|
||||||
|
|
||||||
|
step s2-create-table: <... completed>
|
||||||
|
create_distributed_table
|
||||||
|
|
||||||
|
|
||||||
|
step s4-create-table: <... completed>
|
||||||
|
create_distributed_table
|
||||||
|
|
||||||
|
|
||||||
|
step s2-commit:
|
||||||
|
COMMIT;
|
||||||
|
|
||||||
|
step s4-commit:
|
||||||
|
COMMIT;
|
||||||
|
|
||||||
|
step s2-print-distributed-objects:
|
||||||
|
-- print an overview of all distributed objects
|
||||||
|
SELECT pg_identify_object_as_address(classid, objid, objsubid) FROM citus.pg_dist_object ORDER BY 1;
|
||||||
|
|
||||||
|
-- print if the schema has been created
|
||||||
|
SELECT count(*) FROM pg_namespace where nspname = 'myschema';
|
||||||
|
SELECT run_command_on_workers($$SELECT count(*) FROM pg_namespace where nspname = 'myschema';$$);
|
||||||
|
|
||||||
|
-- print if the type has been created
|
||||||
|
SELECT count(*) FROM pg_type where typname = 'tt1';
|
||||||
|
SELECT run_command_on_workers($$SELECT count(*) FROM pg_type where typname = 'tt1';$$);
|
||||||
|
|
||||||
|
-- print if the function has been created
|
||||||
|
SELECT count(*) FROM pg_proc WHERE proname='add';
|
||||||
|
SELECT run_command_on_workers($$SELECT count(*) FROM pg_proc WHERE proname='add';$$);
|
||||||
|
|
||||||
|
pg_identify_object_as_address
|
||||||
|
|
||||||
|
(schema,{myschema},{})
|
||||||
|
(schema,{myschema2},{})
|
||||||
|
count
|
||||||
|
|
||||||
|
1
|
||||||
|
run_command_on_workers
|
||||||
|
|
||||||
|
(localhost,57637,t,1)
|
||||||
|
(localhost,57638,t,1)
|
||||||
|
count
|
||||||
|
|
||||||
|
0
|
||||||
|
run_command_on_workers
|
||||||
|
|
||||||
|
(localhost,57637,t,0)
|
||||||
|
(localhost,57638,t,0)
|
||||||
|
count
|
||||||
|
|
||||||
|
0
|
||||||
|
run_command_on_workers
|
||||||
|
|
||||||
|
(localhost,57637,t,0)
|
||||||
|
(localhost,57638,t,0)
|
||||||
|
master_remove_node
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
starting permutation: s1-print-distributed-objects s1-begin s1-add-worker s2-public-schema s2-create-type s1-commit s2-print-distributed-objects
|
starting permutation: s1-print-distributed-objects s1-begin s1-add-worker s2-public-schema s2-create-type s1-commit s2-print-distributed-objects
|
||||||
?column?
|
?column?
|
||||||
|
|
||||||
|
|
|
@ -16,7 +16,7 @@ step s1-commit:
|
||||||
COMMIT;
|
COMMIT;
|
||||||
|
|
||||||
step s2-insert: <... completed>
|
step s2-insert: <... completed>
|
||||||
error in steps s1-commit s2-insert: ERROR: duplicate key value violates unique constraint "test_locking_a_key_102469"
|
error in steps s1-commit s2-insert: ERROR: duplicate key value violates unique constraint "test_locking_a_key_102489"
|
||||||
step s2-commit:
|
step s2-commit:
|
||||||
COMMIT;
|
COMMIT;
|
||||||
|
|
||||||
|
|
|
@ -247,11 +247,9 @@ permutation "s1-print-distributed-objects" "s1-begin" "s2-begin" "s2-create-sche
|
||||||
|
|
||||||
# concurrency tests with multi schema distribution
|
# concurrency tests with multi schema distribution
|
||||||
permutation "s1-print-distributed-objects" "s2-create-schema" "s1-begin" "s2-begin" "s3-begin" "s1-add-worker" "s2-create-table" "s3-use-schema" "s3-create-table" "s1-commit" "s2-commit" "s3-commit" "s2-print-distributed-objects"
|
permutation "s1-print-distributed-objects" "s2-create-schema" "s1-begin" "s2-begin" "s3-begin" "s1-add-worker" "s2-create-table" "s3-use-schema" "s3-create-table" "s1-commit" "s2-commit" "s3-commit" "s2-print-distributed-objects"
|
||||||
|
permutation "s1-print-distributed-objects" "s2-create-schema" "s1-begin" "s2-begin" "s3-begin" "s4-begin" "s1-add-worker" "s2-create-table" "s3-use-schema" "s3-create-table" "s4-use-schema" "s4-create-table" "s1-commit" "s2-commit" "s3-commit" "s4-commit" "s2-print-distributed-objects"
|
||||||
permutation "s1-print-distributed-objects" "s1-add-worker" "s2-create-schema" "s2-begin" "s3-begin" "s3-use-schema" "s2-create-table" "s3-create-table" "s2-commit" "s3-commit" "s2-print-distributed-objects"
|
permutation "s1-print-distributed-objects" "s1-add-worker" "s2-create-schema" "s2-begin" "s3-begin" "s3-use-schema" "s2-create-table" "s3-create-table" "s2-commit" "s3-commit" "s2-print-distributed-objects"
|
||||||
|
permutation "s1-print-distributed-objects" "s1-begin" "s2-begin" "s4-begin" "s1-add-worker" "s2-create-schema" "s4-create-schema2" "s2-create-table" "s4-create-table" "s1-commit" "s2-commit" "s4-commit" "s2-print-distributed-objects"
|
||||||
# multiple sessions block waiting to create the same schema (temporarily disabled because too unstable)
|
|
||||||
#permutation "s1-print-distributed-objects" "s2-create-schema" "s1-begin" "s2-begin" "s3-begin" "s4-begin" "s1-add-worker" "s2-create-table" "s3-use-schema" "s3-create-table" "s4-use-schema" "s4-create-table" "s1-commit" "s2-commit" "s3-commit" "s4-commit" "s2-print-distributed-objects"
|
|
||||||
#permutation "s1-print-distributed-objects" "s1-begin" "s2-begin" "s4-begin" "s1-add-worker" "s2-create-schema" "s4-create-schema2" "s2-create-table" "s4-create-table" "s1-commit" "s2-commit" "s4-commit" "s2-print-distributed-objects"
|
|
||||||
|
|
||||||
# type and schema tests
|
# type and schema tests
|
||||||
permutation "s1-print-distributed-objects" "s1-begin" "s1-add-worker" "s2-public-schema" "s2-create-type" "s1-commit" "s2-print-distributed-objects"
|
permutation "s1-print-distributed-objects" "s1-begin" "s1-add-worker" "s2-public-schema" "s2-create-type" "s1-commit" "s2-print-distributed-objects"
|
||||||
|
|
Loading…
Reference in New Issue