mirror of https://github.com/citusdata/citus.git
Fix MX tests
Missed some of these. One had a bad DDL statement to begin with (mixed up column type and column name) and other was just master/worker order.pull/1278/head
parent
f181b24859
commit
42c799faee
|
@ -142,9 +142,9 @@ Indexes:
|
|||
\c - - - :master_port
|
||||
SET client_min_messages TO debug2;
|
||||
CREATE INDEX ddl_test_index ON mx_ddl_table(value);
|
||||
DEBUG: building index "ddl_test_index" on table "mx_ddl_table"
|
||||
NOTICE: using one-phase commit for distributed DDL commands
|
||||
HINT: You can enable two-phase commit for extra safety with: SET citus.multi_shard_commit_protocol TO '2pc'
|
||||
DEBUG: building index "ddl_test_index" on table "mx_ddl_table"
|
||||
RESET client_min_messages;
|
||||
DROP INDEX ddl_test_index;
|
||||
-- show that sequences owned by mx tables result in unique values
|
||||
|
|
|
@ -183,7 +183,7 @@ ABORT;
|
|||
-- applies to DDL
|
||||
BEGIN;
|
||||
INSERT INTO labs_mx VALUES (6, 'Bell labs_mx');
|
||||
ALTER TABLE labs_mx ADD COLUMN text motto;
|
||||
ALTER TABLE labs_mx ADD COLUMN motto text;
|
||||
ERROR: distributed DDL commands must not appear within transaction blocks containing single-shard data modifications
|
||||
COMMIT;
|
||||
-- doesn't apply to COPY after modifications
|
||||
|
|
|
@ -154,7 +154,7 @@ ABORT;
|
|||
-- applies to DDL
|
||||
BEGIN;
|
||||
INSERT INTO labs_mx VALUES (6, 'Bell labs_mx');
|
||||
ALTER TABLE labs_mx ADD COLUMN text motto;
|
||||
ALTER TABLE labs_mx ADD COLUMN motto text;
|
||||
COMMIT;
|
||||
|
||||
-- doesn't apply to COPY after modifications
|
||||
|
|
Loading…
Reference in New Issue