mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
Update test results in galera, galera_3nodes suites.
This commit is contained in:
@@ -1,3 +1,4 @@
|
|||||||
|
connection node_1;
|
||||||
create table t1 (i int, j int, k int, primary key pk(i)) engine=innodb;
|
create table t1 (i int, j int, k int, primary key pk(i)) engine=innodb;
|
||||||
insert into t1 values (1, 1, 1), (2, 2, 2), (3, 3, 3);
|
insert into t1 values (1, 1, 1), (2, 2, 2), (3, 3, 3);
|
||||||
create table t2 (i int, j int, k int, primary key pk(i, j, k), index idx(i, k, j)) engine=innodb;
|
create table t2 (i int, j int, k int, primary key pk(i, j, k), index idx(i, k, j)) engine=innodb;
|
||||||
|
@@ -1,7 +1,10 @@
|
|||||||
|
connection node_1;
|
||||||
CREATE TABLE t1 (f1 INTEGER) ENGINE=InnoDB;
|
CREATE TABLE t1 (f1 INTEGER) ENGINE=InnoDB;
|
||||||
FLUSH TABLES WITH READ LOCK;
|
FLUSH TABLES WITH READ LOCK;
|
||||||
SELECT VARIABLE_VALUE = 2 FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABLE_NAME = 'wsrep_cluster_size';
|
SELECT VARIABLE_VALUE = 2 FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABLE_NAME = 'wsrep_cluster_size';
|
||||||
VARIABLE_VALUE = 2
|
VARIABLE_VALUE = 2
|
||||||
1
|
1
|
||||||
|
connection node_2;
|
||||||
|
connection node_1;
|
||||||
UNLOCK TABLES;
|
UNLOCK TABLES;
|
||||||
DROP TABLE t1;
|
DROP TABLE t1;
|
||||||
|
@@ -1,5 +1,8 @@
|
|||||||
|
connection node_1;
|
||||||
TRUNCATE TABLE mysql.general_log;
|
TRUNCATE TABLE mysql.general_log;
|
||||||
|
connection node_2;
|
||||||
TRUNCATE TABLE mysql.general_log;
|
TRUNCATE TABLE mysql.general_log;
|
||||||
|
connection node_1;
|
||||||
SET SESSION wsrep_osu_method=TOI;
|
SET SESSION wsrep_osu_method=TOI;
|
||||||
CREATE TABLE t1 (f1 INTEGER) ENGINE=InnoDB;
|
CREATE TABLE t1 (f1 INTEGER) ENGINE=InnoDB;
|
||||||
SET SESSION wsrep_osu_method=RSU;
|
SET SESSION wsrep_osu_method=RSU;
|
||||||
@@ -8,6 +11,7 @@ SET SESSION wsrep_osu_method=TOI;
|
|||||||
SELECT COUNT(*) = 2 FROM mysql.general_log WHERE argument LIKE 'CREATE%' OR argument LIKE 'ALTER%';
|
SELECT COUNT(*) = 2 FROM mysql.general_log WHERE argument LIKE 'CREATE%' OR argument LIKE 'ALTER%';
|
||||||
COUNT(*) = 2
|
COUNT(*) = 2
|
||||||
1
|
1
|
||||||
|
connection node_2;
|
||||||
SELECT COUNT(*) = 0 FROM mysql.general_log WHERE argument NOT LIKE 'SELECT%';
|
SELECT COUNT(*) = 0 FROM mysql.general_log WHERE argument NOT LIKE 'SELECT%';
|
||||||
COUNT(*) = 0
|
COUNT(*) = 0
|
||||||
1
|
1
|
||||||
|
@@ -2,10 +2,12 @@
|
|||||||
# MDEV-9312: storage engine not enforced during galera cluster
|
# MDEV-9312: storage engine not enforced during galera cluster
|
||||||
# replication
|
# replication
|
||||||
#
|
#
|
||||||
|
connection node_1;
|
||||||
CREATE TABLE t1(i INT) ENGINE=INNODB;
|
CREATE TABLE t1(i INT) ENGINE=INNODB;
|
||||||
CREATE TABLE t2(i INT) ENGINE=MYISAM;
|
CREATE TABLE t2(i INT) ENGINE=MYISAM;
|
||||||
Warnings:
|
Warnings:
|
||||||
Note 1266 Using storage engine InnoDB for table 't2'
|
Note 1266 Using storage engine InnoDB for table 't2'
|
||||||
|
connection node_2;
|
||||||
SHOW TABLES;
|
SHOW TABLES;
|
||||||
Tables_in_test
|
Tables_in_test
|
||||||
t1
|
t1
|
||||||
|
@@ -1,4 +1,7 @@
|
|||||||
|
connect node_2a, 127.0.0.1, root, , test, $NODE_MYPORT_2;
|
||||||
|
connection node_2;
|
||||||
START SLAVE;
|
START SLAVE;
|
||||||
|
connection node_1;
|
||||||
SET SESSION binlog_format='STATEMENT';
|
SET SESSION binlog_format='STATEMENT';
|
||||||
CREATE TABLE t1 (
|
CREATE TABLE t1 (
|
||||||
i int(11) NOT NULL AUTO_INCREMENT,
|
i int(11) NOT NULL AUTO_INCREMENT,
|
||||||
@@ -40,6 +43,7 @@ Variable_name Value
|
|||||||
auto_increment_increment 7
|
auto_increment_increment 7
|
||||||
auto_increment_offset 5
|
auto_increment_offset 5
|
||||||
wsrep_auto_increment_control ON
|
wsrep_auto_increment_control ON
|
||||||
|
connection node_2;
|
||||||
select * from t1;
|
select * from t1;
|
||||||
i c
|
i c
|
||||||
1 dummy_text
|
1 dummy_text
|
||||||
@@ -58,6 +62,7 @@ binlog_format ROW
|
|||||||
show variables like 'auto_increment_increment';
|
show variables like 'auto_increment_increment';
|
||||||
Variable_name Value
|
Variable_name Value
|
||||||
auto_increment_increment 2
|
auto_increment_increment 2
|
||||||
|
connect node_3, 127.0.0.1, root, , test, $NODE_MYPORT_3;
|
||||||
select * from t1;
|
select * from t1;
|
||||||
i c
|
i c
|
||||||
1 dummy_text
|
1 dummy_text
|
||||||
@@ -76,7 +81,10 @@ binlog_format ROW
|
|||||||
show variables like 'auto_increment_increment';
|
show variables like 'auto_increment_increment';
|
||||||
Variable_name Value
|
Variable_name Value
|
||||||
auto_increment_increment 2
|
auto_increment_increment 2
|
||||||
|
connection node_1;
|
||||||
DROP TABLE t1;
|
DROP TABLE t1;
|
||||||
|
connection node_2;
|
||||||
STOP SLAVE;
|
STOP SLAVE;
|
||||||
RESET SLAVE ALL;
|
RESET SLAVE ALL;
|
||||||
|
connection node_1;
|
||||||
RESET MASTER;
|
RESET MASTER;
|
||||||
|
@@ -11,7 +11,4 @@ SELECT COUNT(*) = 2 FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_NAME='t1';
|
|||||||
COUNT(*) = 2
|
COUNT(*) = 2
|
||||||
1
|
1
|
||||||
connection node_1;
|
connection node_1;
|
||||||
SELECT VARIABLE_VALUE = 2 FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABLE_NAME = 'wsrep_cluster_size';
|
|
||||||
VARIABLE_VALUE = 2
|
|
||||||
1
|
|
||||||
DROP TABLE t1;
|
DROP TABLE t1;
|
||||||
|
@@ -16,3 +16,5 @@ VARIABLE_VALUE = 'ON'
|
|||||||
1
|
1
|
||||||
SET GLOBAL wsrep_cluster_address = '';
|
SET GLOBAL wsrep_cluster_address = '';
|
||||||
connection node_2;
|
connection node_2;
|
||||||
|
disconnect node_2;
|
||||||
|
disconnect node_1;
|
||||||
|
@@ -4,6 +4,7 @@ connection node_1;
|
|||||||
CREATE TABLE t1 (f1 INTEGER) ENGINE=InnoDB;
|
CREATE TABLE t1 (f1 INTEGER) ENGINE=InnoDB;
|
||||||
INSERT INTO t1 VALUES (1);
|
INSERT INTO t1 VALUES (1);
|
||||||
connection node_2;
|
connection node_2;
|
||||||
|
connection node_1;
|
||||||
connection node_2a;
|
connection node_2a;
|
||||||
SELECT COUNT(*) = 1 FROM t1;
|
SELECT COUNT(*) = 1 FROM t1;
|
||||||
COUNT(*) = 1
|
COUNT(*) = 1
|
||||||
@@ -12,3 +13,5 @@ SELECT VARIABLE_VALUE = 2 FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABLE_N
|
|||||||
VARIABLE_VALUE = 2
|
VARIABLE_VALUE = 2
|
||||||
1
|
1
|
||||||
DROP TABLE t1;
|
DROP TABLE t1;
|
||||||
|
disconnect node_2;
|
||||||
|
disconnect node_1;
|
||||||
|
@@ -171,6 +171,7 @@ DROP DATABASE test1;
|
|||||||
#
|
#
|
||||||
|
|
||||||
# On node_1
|
# On node_1
|
||||||
|
connection node_1;
|
||||||
CREATE USER foo@localhost;
|
CREATE USER foo@localhost;
|
||||||
CREATE ROLE role1;
|
CREATE ROLE role1;
|
||||||
CREATE ROLE role2 WITH ADMIN CURRENT_USER;
|
CREATE ROLE role2 WITH ADMIN CURRENT_USER;
|
||||||
@@ -189,6 +190,7 @@ root@localhost role1 YES NO
|
|||||||
root@localhost role2 YES NO
|
root@localhost role2 YES NO
|
||||||
|
|
||||||
# On node_2
|
# On node_2
|
||||||
|
connection node_2;
|
||||||
SELECT * FROM mysql.roles_mapping;
|
SELECT * FROM mysql.roles_mapping;
|
||||||
Host User Role Admin_option
|
Host User Role Admin_option
|
||||||
role1 role4 Y
|
role1 role4 Y
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
call mtr.add_suppression("WSREP: TO isolation failed for: ");
|
|
||||||
connection node_1;
|
|
||||||
connection node_1;
|
connection node_1;
|
||||||
connection node_2;
|
connection node_2;
|
||||||
|
call mtr.add_suppression("WSREP: TO isolation failed for: ");
|
||||||
|
connection node_1;
|
||||||
connection node_2;
|
connection node_2;
|
||||||
Killing server ...
|
Killing server ...
|
||||||
connection node_1;
|
connection node_1;
|
||||||
@@ -9,3 +9,5 @@ CREATE TABLE t1 (f1 INTEGER) ENGINE=InnoDB;
|
|||||||
ERROR 40001: Deadlock found when trying to get lock; try restarting transaction
|
ERROR 40001: Deadlock found when trying to get lock; try restarting transaction
|
||||||
SET GLOBAL wsrep_cluster_address = '';
|
SET GLOBAL wsrep_cluster_address = '';
|
||||||
connect node_2a, 127.0.0.1, root, , test, $NODE_MYPORT_2;
|
connect node_2a, 127.0.0.1, root, , test, $NODE_MYPORT_2;
|
||||||
|
disconnect node_2;
|
||||||
|
disconnect node_1;
|
||||||
|
@@ -33,4 +33,5 @@ COUNT(*) = 11
|
|||||||
1
|
1
|
||||||
CALL mtr.add_suppression("Protocol violation");
|
CALL mtr.add_suppression("Protocol violation");
|
||||||
DROP TABLE t1;
|
DROP TABLE t1;
|
||||||
|
connection node_1;
|
||||||
CALL mtr.add_suppression("Protocol violation");
|
CALL mtr.add_suppression("Protocol violation");
|
||||||
|
@@ -1,3 +1,5 @@
|
|||||||
|
connection node_1;
|
||||||
|
connection node_2;
|
||||||
connection node_2;
|
connection node_2;
|
||||||
CREATE TABLE t1(i INT) ENGINE=INNODB;
|
CREATE TABLE t1(i INT) ENGINE=INNODB;
|
||||||
INSERT INTO t1 VALUES(1);
|
INSERT INTO t1 VALUES(1);
|
||||||
|
@@ -1,4 +1,5 @@
|
|||||||
# On node_1
|
# On node_1
|
||||||
|
connection node_1;
|
||||||
list of GTID variables :
|
list of GTID variables :
|
||||||
gtid_domain_id 1
|
gtid_domain_id 1
|
||||||
gtid_binlog_pos
|
gtid_binlog_pos
|
||||||
@@ -8,6 +9,7 @@ gtid_slave_pos
|
|||||||
wsrep_gtid_domain_id 4294967295
|
wsrep_gtid_domain_id 4294967295
|
||||||
wsrep_gtid_mode 1
|
wsrep_gtid_mode 1
|
||||||
# On node_2
|
# On node_2
|
||||||
|
connection node_2;
|
||||||
list of GTID variables :
|
list of GTID variables :
|
||||||
gtid_domain_id 2
|
gtid_domain_id 2
|
||||||
gtid_binlog_pos
|
gtid_binlog_pos
|
||||||
@@ -17,6 +19,7 @@ gtid_slave_pos
|
|||||||
wsrep_gtid_domain_id 4294967295
|
wsrep_gtid_domain_id 4294967295
|
||||||
wsrep_gtid_mode 1
|
wsrep_gtid_mode 1
|
||||||
# On node_1
|
# On node_1
|
||||||
|
connection node_1;
|
||||||
CREATE TABLE t1(i INT) ENGINE=INNODB;
|
CREATE TABLE t1(i INT) ENGINE=INNODB;
|
||||||
CREATE TABLE t2(i INT) ENGINE=MEMORY;
|
CREATE TABLE t2(i INT) ENGINE=MEMORY;
|
||||||
INSERT INTO t1 VALUES(1);
|
INSERT INTO t1 VALUES(1);
|
||||||
@@ -34,6 +37,7 @@ gtid_slave_pos
|
|||||||
wsrep_gtid_domain_id 4294967295
|
wsrep_gtid_domain_id 4294967295
|
||||||
wsrep_gtid_mode 1
|
wsrep_gtid_mode 1
|
||||||
# On node_2
|
# On node_2
|
||||||
|
connection node_2;
|
||||||
SELECT * FROM t1;
|
SELECT * FROM t1;
|
||||||
i
|
i
|
||||||
1
|
1
|
||||||
@@ -46,6 +50,7 @@ gtid_slave_pos
|
|||||||
wsrep_gtid_domain_id 4294967295
|
wsrep_gtid_domain_id 4294967295
|
||||||
wsrep_gtid_mode 1
|
wsrep_gtid_mode 1
|
||||||
# On node_1
|
# On node_1
|
||||||
|
connection node_1;
|
||||||
INSERT INTO t2 VALUES(1);
|
INSERT INTO t2 VALUES(1);
|
||||||
SELECT * FROM t2;
|
SELECT * FROM t2;
|
||||||
i
|
i
|
||||||
@@ -59,6 +64,7 @@ gtid_slave_pos
|
|||||||
wsrep_gtid_domain_id 4294967295
|
wsrep_gtid_domain_id 4294967295
|
||||||
wsrep_gtid_mode 1
|
wsrep_gtid_mode 1
|
||||||
# On node_2
|
# On node_2
|
||||||
|
connection node_2;
|
||||||
SELECT * FROM t2;
|
SELECT * FROM t2;
|
||||||
i
|
i
|
||||||
list of GTID variables :
|
list of GTID variables :
|
||||||
@@ -70,5 +76,8 @@ gtid_slave_pos
|
|||||||
wsrep_gtid_domain_id 4294967295
|
wsrep_gtid_domain_id 4294967295
|
||||||
wsrep_gtid_mode 1
|
wsrep_gtid_mode 1
|
||||||
# On node_1
|
# On node_1
|
||||||
|
connection node_1;
|
||||||
DROP TABLE t1, t2;
|
DROP TABLE t1, t2;
|
||||||
|
disconnect node_2;
|
||||||
|
disconnect node_1;
|
||||||
# End of test
|
# End of test
|
||||||
|
@@ -1,4 +1,6 @@
|
|||||||
connection node_1;
|
connection node_1;
|
||||||
|
connection node_2;
|
||||||
|
connection node_1;
|
||||||
CREATE TABLE t1 (f1 CHAR(255)) ENGINE=InnoDB;
|
CREATE TABLE t1 (f1 CHAR(255)) ENGINE=InnoDB;
|
||||||
INSERT INTO t1 VALUES('test');
|
INSERT INTO t1 VALUES('test');
|
||||||
CREATE DATABASE db;
|
CREATE DATABASE db;
|
||||||
@@ -11,3 +13,6 @@ Using --wsrep-start-position when starting mysqld ...
|
|||||||
connection node_1;
|
connection node_1;
|
||||||
DROP TABLE t1;
|
DROP TABLE t1;
|
||||||
DROP DATABASE db;
|
DROP DATABASE db;
|
||||||
|
connect node_2a, 127.0.0.1, root, , test, $NODE_MYPORT_2;
|
||||||
|
disconnect node_2;
|
||||||
|
disconnect node_1;
|
||||||
|
@@ -1,3 +1,7 @@
|
|||||||
|
connection node_1;
|
||||||
|
connection node_2;
|
||||||
|
connection node_3;
|
||||||
|
connection node_1;
|
||||||
CREATE TABLE t1 (f1 INTEGER PRIMARY KEY) ENGINE=InnoDB;
|
CREATE TABLE t1 (f1 INTEGER PRIMARY KEY) ENGINE=InnoDB;
|
||||||
SET AUTOCOMMIT=OFF;
|
SET AUTOCOMMIT=OFF;
|
||||||
START TRANSACTION;
|
START TRANSACTION;
|
||||||
@@ -5,13 +9,20 @@ INSERT INTO t1 VALUES (1);
|
|||||||
SELECT VARIABLE_VALUE = 3 FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABLE_NAME = 'wsrep_cluster_size';
|
SELECT VARIABLE_VALUE = 3 FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABLE_NAME = 'wsrep_cluster_size';
|
||||||
VARIABLE_VALUE = 3
|
VARIABLE_VALUE = 3
|
||||||
1
|
1
|
||||||
|
connection node_3;
|
||||||
SET GLOBAL wsrep_cluster_address = '';
|
SET GLOBAL wsrep_cluster_address = '';
|
||||||
|
connection node_1;
|
||||||
INSERT INTO t1 VALUES (2);
|
INSERT INTO t1 VALUES (2);
|
||||||
SELECT VARIABLE_VALUE = 2 FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABLE_NAME = 'wsrep_cluster_size';
|
SELECT VARIABLE_VALUE = 2 FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABLE_NAME = 'wsrep_cluster_size';
|
||||||
VARIABLE_VALUE = 2
|
VARIABLE_VALUE = 2
|
||||||
1
|
1
|
||||||
COMMIT;
|
COMMIT;
|
||||||
|
connection node_2;
|
||||||
SELECT COUNT(*) = 2 FROM t1;
|
SELECT COUNT(*) = 2 FROM t1;
|
||||||
COUNT(*) = 2
|
COUNT(*) = 2
|
||||||
1
|
1
|
||||||
|
connection node_3;
|
||||||
|
connection node_1;
|
||||||
DROP TABLE t1;
|
DROP TABLE t1;
|
||||||
|
disconnect node_2;
|
||||||
|
disconnect node_1;
|
||||||
|
@@ -1,11 +1,15 @@
|
|||||||
|
connection node_1;
|
||||||
CREATE TABLE t1 (f1 INTEGER PRIMARY KEY) ENGINE=InnoDB;
|
CREATE TABLE t1 (f1 INTEGER PRIMARY KEY) ENGINE=InnoDB;
|
||||||
CREATE TABLE t2 (f1 INTEGER PRIMARY KEY) ENGINE=InnoDB;
|
CREATE TABLE t2 (f1 INTEGER PRIMARY KEY) ENGINE=InnoDB;
|
||||||
SET AUTOCOMMIT=OFF;
|
SET AUTOCOMMIT=OFF;
|
||||||
START TRANSACTION;
|
START TRANSACTION;
|
||||||
INSERT INTO t1 VALUES (1);
|
INSERT INTO t1 VALUES (1);
|
||||||
INSERT INTO t2 VALUES (1);
|
INSERT INTO t2 VALUES (1);
|
||||||
|
connection node_2;
|
||||||
INSERT INTO t1 VALUES (1);
|
INSERT INTO t1 VALUES (1);
|
||||||
|
connection node_3;
|
||||||
INSERT INTO t2 VALUES (1);
|
INSERT INTO t2 VALUES (1);
|
||||||
|
connection node_1;
|
||||||
COMMIT;
|
COMMIT;
|
||||||
ERROR 40001: Deadlock found when trying to get lock; try restarting transaction
|
ERROR 40001: Deadlock found when trying to get lock; try restarting transaction
|
||||||
DROP TABLE t1;
|
DROP TABLE t1;
|
||||||
|
@@ -1,8 +1,14 @@
|
|||||||
CREATE TABLE t1 (f1 INTEGER PRIMARY KEY) ENGINE=InnoDB;
|
CREATE TABLE t1 (f1 INTEGER PRIMARY KEY) ENGINE=InnoDB;
|
||||||
INSERT INTO t1 VALUES (1);
|
INSERT INTO t1 VALUES (1);
|
||||||
|
connection node_3;
|
||||||
SET GLOBAL wsrep_slave_threads = 2;
|
SET GLOBAL wsrep_slave_threads = 2;
|
||||||
|
connection node_1;
|
||||||
UPDATE t1 SET f1 = f1 + 10;;
|
UPDATE t1 SET f1 = f1 + 10;;
|
||||||
|
connection node_2;
|
||||||
UPDATE t1 SET f1 = f1 + 100;;
|
UPDATE t1 SET f1 = f1 + 100;;
|
||||||
|
connection node_1;
|
||||||
|
connection node_2;
|
||||||
|
connection node_3;
|
||||||
SELECT f1 = 111 FROM t1;
|
SELECT f1 = 111 FROM t1;
|
||||||
f1 = 111
|
f1 = 111
|
||||||
1
|
1
|
||||||
|
Reference in New Issue
Block a user