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
Jason Petersen 2017-03-13 15:24:12 -06:00
parent f181b24859
commit 42c799faee
No known key found for this signature in database
GPG Key ID: 9F1D3510D110ABA9
3 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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

View File

@ -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