Skip to content

Commit d5e6d83

Browse files
author
Nirbhay Choubey
committed
Update test results in galera, galera_3nodes suites.
1 parent 9ddbf2c commit d5e6d83

17 files changed

+67
-5
lines changed

mysql-test/suite/galera/r/GAL-382.result

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
connection node_1;
12
create table t1 (i int, j int, k int, primary key pk(i)) engine=innodb;
23
insert into t1 values (1, 1, 1), (2, 2, 2), (3, 3, 3);
34
create table t2 (i int, j int, k int, primary key pk(i, j, k), index idx(i, k, j)) engine=innodb;
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
1+
connection node_1;
12
CREATE TABLE t1 (f1 INTEGER) ENGINE=InnoDB;
23
FLUSH TABLES WITH READ LOCK;
34
SELECT VARIABLE_VALUE = 2 FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABLE_NAME = 'wsrep_cluster_size';
45
VARIABLE_VALUE = 2
56
1
7+
connection node_2;
8+
connection node_1;
69
UNLOCK TABLES;
710
DROP TABLE t1;

mysql-test/suite/galera/r/MW-44.result

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
1+
connection node_1;
12
TRUNCATE TABLE mysql.general_log;
3+
connection node_2;
24
TRUNCATE TABLE mysql.general_log;
5+
connection node_1;
36
SET SESSION wsrep_osu_method=TOI;
47
CREATE TABLE t1 (f1 INTEGER) ENGINE=InnoDB;
58
SET SESSION wsrep_osu_method=RSU;
@@ -8,6 +11,7 @@ SET SESSION wsrep_osu_method=TOI;
811
SELECT COUNT(*) = 2 FROM mysql.general_log WHERE argument LIKE 'CREATE%' OR argument LIKE 'ALTER%';
912
COUNT(*) = 2
1013
1
14+
connection node_2;
1115
SELECT COUNT(*) = 0 FROM mysql.general_log WHERE argument NOT LIKE 'SELECT%';
1216
COUNT(*) = 0
1317
1

mysql-test/suite/galera/r/enforce_storage_engine2.result

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,12 @@
22
# MDEV-9312: storage engine not enforced during galera cluster
33
# replication
44
#
5+
connection node_1;
56
CREATE TABLE t1(i INT) ENGINE=INNODB;
67
CREATE TABLE t2(i INT) ENGINE=MYISAM;
78
Warnings:
89
Note 1266 Using storage engine InnoDB for table 't2'
10+
connection node_2;
911
SHOW TABLES;
1012
Tables_in_test
1113
t1

mysql-test/suite/galera/r/galera_as_slave_autoinc.result

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1+
connect node_2a, 127.0.0.1, root, , test, $NODE_MYPORT_2;
2+
connection node_2;
13
START SLAVE;
4+
connection node_1;
25
SET SESSION binlog_format='STATEMENT';
36
CREATE TABLE t1 (
47
i int(11) NOT NULL AUTO_INCREMENT,
@@ -40,6 +43,7 @@ Variable_name Value
4043
auto_increment_increment 7
4144
auto_increment_offset 5
4245
wsrep_auto_increment_control ON
46+
connection node_2;
4347
select * from t1;
4448
i c
4549
1 dummy_text
@@ -58,6 +62,7 @@ binlog_format ROW
5862
show variables like 'auto_increment_increment';
5963
Variable_name Value
6064
auto_increment_increment 2
65+
connect node_3, 127.0.0.1, root, , test, $NODE_MYPORT_3;
6166
select * from t1;
6267
i c
6368
1 dummy_text
@@ -76,7 +81,10 @@ binlog_format ROW
7681
show variables like 'auto_increment_increment';
7782
Variable_name Value
7883
auto_increment_increment 2
84+
connection node_1;
7985
DROP TABLE t1;
86+
connection node_2;
8087
STOP SLAVE;
8188
RESET SLAVE ALL;
89+
connection node_1;
8290
RESET MASTER;

mysql-test/suite/galera/r/galera_kill_ddl.result

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,4 @@ SELECT COUNT(*) = 2 FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_NAME='t1';
1111
COUNT(*) = 2
1212
1
1313
connection node_1;
14-
SELECT VARIABLE_VALUE = 2 FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABLE_NAME = 'wsrep_cluster_size';
15-
VARIABLE_VALUE = 2
16-
1
1714
DROP TABLE t1;

mysql-test/suite/galera/r/galera_pc_ignore_sb.result

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,5 @@ VARIABLE_VALUE = 'ON'
1616
1
1717
SET GLOBAL wsrep_cluster_address = '';
1818
connection node_2;
19+
disconnect node_2;
20+
disconnect node_1;

mysql-test/suite/galera/r/galera_restart_nochanges.result

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ connection node_1;
44
CREATE TABLE t1 (f1 INTEGER) ENGINE=InnoDB;
55
INSERT INTO t1 VALUES (1);
66
connection node_2;
7+
connection node_1;
78
connection node_2a;
89
SELECT COUNT(*) = 1 FROM t1;
910
COUNT(*) = 1
@@ -12,3 +13,5 @@ SELECT VARIABLE_VALUE = 2 FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABLE_N
1213
VARIABLE_VALUE = 2
1314
1
1415
DROP TABLE t1;
16+
disconnect node_2;
17+
disconnect node_1;

mysql-test/suite/galera/r/galera_roles.result

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,7 @@ DROP DATABASE test1;
171171
#
172172

173173
# On node_1
174+
connection node_1;
174175
CREATE USER foo@localhost;
175176
CREATE ROLE role1;
176177
CREATE ROLE role2 WITH ADMIN CURRENT_USER;
@@ -189,6 +190,7 @@ root@localhost role1 YES NO
189190
root@localhost role2 YES NO
190191

191192
# On node_2
193+
connection node_2;
192194
SELECT * FROM mysql.roles_mapping;
193195
Host User Role Admin_option
194196
role1 role4 Y
Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
1-
call mtr.add_suppression("WSREP: TO isolation failed for: ");
2-
connection node_1;
31
connection node_1;
42
connection node_2;
3+
call mtr.add_suppression("WSREP: TO isolation failed for: ");
4+
connection node_1;
55
connection node_2;
66
Killing server ...
77
connection node_1;
88
CREATE TABLE t1 (f1 INTEGER) ENGINE=InnoDB;
99
ERROR 40001: Deadlock found when trying to get lock; try restarting transaction
1010
SET GLOBAL wsrep_cluster_address = '';
1111
connect node_2a, 127.0.0.1, root, , test, $NODE_MYPORT_2;
12+
disconnect node_2;
13+
disconnect node_1;

mysql-test/suite/galera/r/galera_var_desync_on.result

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,5 @@ COUNT(*) = 11
3333
1
3434
CALL mtr.add_suppression("Protocol violation");
3535
DROP TABLE t1;
36+
connection node_1;
3637
CALL mtr.add_suppression("Protocol violation");

mysql-test/suite/galera/r/galera_var_dirty_reads.result

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
connection node_1;
2+
connection node_2;
13
connection node_2;
24
CREATE TABLE t1(i INT) ENGINE=INNODB;
35
INSERT INTO t1 VALUES(1);

mysql-test/suite/galera/r/mdev_10518.result

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# On node_1
2+
connection node_1;
23
list of GTID variables :
34
gtid_domain_id 1
45
gtid_binlog_pos
@@ -8,6 +9,7 @@ gtid_slave_pos
89
wsrep_gtid_domain_id 4294967295
910
wsrep_gtid_mode 1
1011
# On node_2
12+
connection node_2;
1113
list of GTID variables :
1214
gtid_domain_id 2
1315
gtid_binlog_pos
@@ -17,6 +19,7 @@ gtid_slave_pos
1719
wsrep_gtid_domain_id 4294967295
1820
wsrep_gtid_mode 1
1921
# On node_1
22+
connection node_1;
2023
CREATE TABLE t1(i INT) ENGINE=INNODB;
2124
CREATE TABLE t2(i INT) ENGINE=MEMORY;
2225
INSERT INTO t1 VALUES(1);
@@ -34,6 +37,7 @@ gtid_slave_pos
3437
wsrep_gtid_domain_id 4294967295
3538
wsrep_gtid_mode 1
3639
# On node_2
40+
connection node_2;
3741
SELECT * FROM t1;
3842
i
3943
1
@@ -46,6 +50,7 @@ gtid_slave_pos
4650
wsrep_gtid_domain_id 4294967295
4751
wsrep_gtid_mode 1
4852
# On node_1
53+
connection node_1;
4954
INSERT INTO t2 VALUES(1);
5055
SELECT * FROM t2;
5156
i
@@ -59,6 +64,7 @@ gtid_slave_pos
5964
wsrep_gtid_domain_id 4294967295
6065
wsrep_gtid_mode 1
6166
# On node_2
67+
connection node_2;
6268
SELECT * FROM t2;
6369
i
6470
list of GTID variables :
@@ -70,5 +76,8 @@ gtid_slave_pos
7076
wsrep_gtid_domain_id 4294967295
7177
wsrep_gtid_mode 1
7278
# On node_1
79+
connection node_1;
7380
DROP TABLE t1, t2;
81+
disconnect node_2;
82+
disconnect node_1;
7483
# End of test

mysql-test/suite/galera/r/mysql-wsrep#31.result

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
connection node_1;
2+
connection node_2;
3+
connection node_1;
24
CREATE TABLE t1 (f1 CHAR(255)) ENGINE=InnoDB;
35
INSERT INTO t1 VALUES('test');
46
CREATE DATABASE db;
@@ -11,3 +13,6 @@ Using --wsrep-start-position when starting mysqld ...
1113
connection node_1;
1214
DROP TABLE t1;
1315
DROP DATABASE db;
16+
connect node_2a, 127.0.0.1, root, , test, $NODE_MYPORT_2;
17+
disconnect node_2;
18+
disconnect node_1;
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,28 @@
1+
connection node_1;
2+
connection node_2;
3+
connection node_3;
4+
connection node_1;
15
CREATE TABLE t1 (f1 INTEGER PRIMARY KEY) ENGINE=InnoDB;
26
SET AUTOCOMMIT=OFF;
37
START TRANSACTION;
48
INSERT INTO t1 VALUES (1);
59
SELECT VARIABLE_VALUE = 3 FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABLE_NAME = 'wsrep_cluster_size';
610
VARIABLE_VALUE = 3
711
1
12+
connection node_3;
813
SET GLOBAL wsrep_cluster_address = '';
14+
connection node_1;
915
INSERT INTO t1 VALUES (2);
1016
SELECT VARIABLE_VALUE = 2 FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABLE_NAME = 'wsrep_cluster_size';
1117
VARIABLE_VALUE = 2
1218
1
1319
COMMIT;
20+
connection node_2;
1421
SELECT COUNT(*) = 2 FROM t1;
1522
COUNT(*) = 2
1623
1
24+
connection node_3;
25+
connection node_1;
1726
DROP TABLE t1;
27+
disconnect node_2;
28+
disconnect node_1;

mysql-test/suite/galera_3nodes/r/galera_certification_double_failure.result

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,15 @@
1+
connection node_1;
12
CREATE TABLE t1 (f1 INTEGER PRIMARY KEY) ENGINE=InnoDB;
23
CREATE TABLE t2 (f1 INTEGER PRIMARY KEY) ENGINE=InnoDB;
34
SET AUTOCOMMIT=OFF;
45
START TRANSACTION;
56
INSERT INTO t1 VALUES (1);
67
INSERT INTO t2 VALUES (1);
8+
connection node_2;
79
INSERT INTO t1 VALUES (1);
10+
connection node_3;
811
INSERT INTO t2 VALUES (1);
12+
connection node_1;
913
COMMIT;
1014
ERROR 40001: Deadlock found when trying to get lock; try restarting transaction
1115
DROP TABLE t1;

mysql-test/suite/galera_3nodes/r/galera_parallel_apply_3nodes.result

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,14 @@
11
CREATE TABLE t1 (f1 INTEGER PRIMARY KEY) ENGINE=InnoDB;
22
INSERT INTO t1 VALUES (1);
3+
connection node_3;
34
SET GLOBAL wsrep_slave_threads = 2;
5+
connection node_1;
46
UPDATE t1 SET f1 = f1 + 10;;
7+
connection node_2;
58
UPDATE t1 SET f1 = f1 + 100;;
9+
connection node_1;
10+
connection node_2;
11+
connection node_3;
612
SELECT f1 = 111 FROM t1;
713
f1 = 111
814
1

0 commit comments

Comments
 (0)