Current Path : /home/usr.opt/mysql57/mysql-test/suite/group_replication/r/ |
FreeBSD hs32.drive.ne.jp 9.1-RELEASE FreeBSD 9.1-RELEASE #1: Wed Jan 14 12:18:08 JST 2015 root@hs32.drive.ne.jp:/sys/amd64/compile/hs32 amd64 |
Current File : /home/usr.opt/mysql57/mysql-test/suite/group_replication/r/gr_storage_engines.result |
include/group_replication.inc Warnings: Note #### Sending passwords in plain text without SSL/TLS is extremely insecure. Note #### Storing MySQL user name or password information in the master info repository is not secure and is therefore not recommended. Please consider using the USER and PASSWORD connection options for START SLAVE; see the 'START SLAVE Syntax' in the MySQL Manual for more information. [connection server1] Create tables with different storage engines, Group Replication should not block this. USE test; CREATE TABLE tn (c1 int PRIMARY KEY, c2 int) ENGINE=INNODB; CREATE TABLE t1 (c1 int not null, c2 int not null) ENGINE=CSV; CREATE TABLE t2 (c1 int PRIMARY KEY, c2 int) ENGINE=MyISAM; CREATE TABLE t3 (c1 int PRIMARY KEY, c2 int) ENGINE=MEMORY; CREATE TABLE t4 (c1 int, c2 int) ENGINE=ARCHIVE; CREATE TABLE t5 (c1 int PRIMARY KEY, c2 int) ENGINE=BLACKHOLE; CREATE TABLE t6 (C1 INT PRIMARY KEY, c2 int) ENGINE=MERGE UNION=(t2) INSERT_METHOD=LAST; Group Replication Should block DML's on non-transactional tables INSERT INTO t6 (c1,c2) VALUES(1, 2); ERROR HY000: The table does not comply with the requirements by an external plugin. INSERT INTO tn (c1) VALUES (6+10); UPDATE t6 SET c2= 100; ERROR HY000: The table does not comply with the requirements by an external plugin. REPLACE INTO t6(c1) VALUES(2); ERROR HY000: The table does not comply with the requirements by an external plugin. REPLACE INTO t6 (c1) SELECT tn.c1 FROM tn; ERROR HY000: The table does not comply with the requirements by an external plugin. UPDATE t6, tn SET t6.c1= 100, tn.c1= 100; ERROR HY000: The table does not comply with the requirements by an external plugin. DELETE FROM t6; ERROR HY000: The table does not comply with the requirements by an external plugin. DELETE FROM tn; INSERT INTO t5 (c1,c2) VALUES(1, 2); ERROR HY000: The table does not comply with the requirements by an external plugin. INSERT INTO tn (c1) VALUES (5+10); UPDATE t5 SET c2= 100; ERROR HY000: The table does not comply with the requirements by an external plugin. REPLACE INTO t5(c1) VALUES(2); ERROR HY000: The table does not comply with the requirements by an external plugin. REPLACE INTO t5 (c1) SELECT tn.c1 FROM tn; ERROR HY000: The table does not comply with the requirements by an external plugin. UPDATE t5, tn SET t5.c1= 100, tn.c1= 100; ERROR HY000: The table does not comply with the requirements by an external plugin. DELETE FROM t5; ERROR HY000: The table does not comply with the requirements by an external plugin. DELETE FROM tn; INSERT INTO t4 (c1,c2) VALUES(1, 2); ERROR HY000: The table does not comply with the requirements by an external plugin. INSERT INTO tn (c1) VALUES (4+10); UPDATE t4 SET c2= 100; ERROR HY000: The table does not comply with the requirements by an external plugin. REPLACE INTO t4(c1) VALUES(2); ERROR HY000: The table does not comply with the requirements by an external plugin. REPLACE INTO t4 (c1) SELECT tn.c1 FROM tn; ERROR HY000: The table does not comply with the requirements by an external plugin. UPDATE t4, tn SET t4.c1= 100, tn.c1= 100; ERROR HY000: The table does not comply with the requirements by an external plugin. DELETE FROM t4; ERROR HY000: The table does not comply with the requirements by an external plugin. DELETE FROM tn; INSERT INTO t3 (c1,c2) VALUES(1, 2); ERROR HY000: The table does not comply with the requirements by an external plugin. INSERT INTO tn (c1) VALUES (3+10); UPDATE t3 SET c2= 100; ERROR HY000: The table does not comply with the requirements by an external plugin. REPLACE INTO t3(c1) VALUES(2); ERROR HY000: The table does not comply with the requirements by an external plugin. REPLACE INTO t3 (c1) SELECT tn.c1 FROM tn; ERROR HY000: The table does not comply with the requirements by an external plugin. UPDATE t3, tn SET t3.c1= 100, tn.c1= 100; ERROR HY000: The table does not comply with the requirements by an external plugin. DELETE FROM t3; ERROR HY000: The table does not comply with the requirements by an external plugin. DELETE FROM tn; INSERT INTO t2 (c1,c2) VALUES(1, 2); ERROR HY000: The table does not comply with the requirements by an external plugin. INSERT INTO tn (c1) VALUES (2+10); UPDATE t2 SET c2= 100; ERROR HY000: The table does not comply with the requirements by an external plugin. REPLACE INTO t2(c1) VALUES(2); ERROR HY000: The table does not comply with the requirements by an external plugin. REPLACE INTO t2 (c1) SELECT tn.c1 FROM tn; ERROR HY000: The table does not comply with the requirements by an external plugin. UPDATE t2, tn SET t2.c1= 100, tn.c1= 100; ERROR HY000: The table does not comply with the requirements by an external plugin. DELETE FROM t2; ERROR HY000: The table does not comply with the requirements by an external plugin. DELETE FROM tn; INSERT INTO t1 (c1,c2) VALUES(1, 2); ERROR HY000: The table does not comply with the requirements by an external plugin. INSERT INTO tn (c1) VALUES (1+10); UPDATE t1 SET c2= 100; ERROR HY000: The table does not comply with the requirements by an external plugin. REPLACE INTO t1(c1) VALUES(2); ERROR HY000: The table does not comply with the requirements by an external plugin. REPLACE INTO t1 (c1) SELECT tn.c1 FROM tn; ERROR HY000: The table does not comply with the requirements by an external plugin. UPDATE t1, tn SET t1.c1= 100, tn.c1= 100; ERROR HY000: The table does not comply with the requirements by an external plugin. DELETE FROM t1; ERROR HY000: The table does not comply with the requirements by an external plugin. DELETE FROM tn; Check that INSERT...SELECT statement on InnoDB table(tn) from a non-transactional table(Eg:MyISAM t2) fails INSERT INTO tn (c1) SELECT (t2.c1) FROM t2; ERROR HY000: The table does not comply with the requirements by an external plugin. change storage engine to "InnoDB" on t2 and check INSERT...SELECT on tn succeeds ALTER TABLE t2 ENGINE=INNODB; INSERT INTO tn (c1) SELECT (t2.c1) FROM t2; DROP TABLE tn; DROP TABLE t1; DROP TABLE t2; DROP TABLE t3; DROP TABLE t4; DROP TABLE t5; DROP TABLE t6; SET SESSION sql_log_bin= 0; call mtr.add_suppression("Table.*does not have any PRIMARY KEY. This is not compatible with Group Replication"); call mtr.add_suppression("Table.*does not use the InnoDB storage engine. This is not compatible with Group Replication"); SET SESSION sql_log_bin= 1; include/group_replication_end.inc