Skip to content

Commit a193c57

Browse files
committed
MDEV-17206: Fix the .rdiff file that was broken in MDEV-17804
Only starting with MariaDB 10.2, the .result file will echo "connect" and "connection" statements. There is no way how the test could have passed on debug builds after commit 1037edc (which looks like an untested backport from a later version).
1 parent 94e6a22 commit a193c57

File tree

1 file changed

+4
-15
lines changed

1 file changed

+4
-15
lines changed

mysql-test/suite/galera/r/galera_ist_mysqldump,debug.rdiff

Lines changed: 4 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
1-
--- r/galera_ist_mysqldump.result 2018-11-22 14:25:28.551554055 +0200
2-
+++ r/galera_ist_mysqldump.reject 2018-11-22 15:46:33.119441931 +0200
3-
@@ -200,6 +200,114 @@
1+
--- r/galera_ist_mysqldump.result
2+
+++ r/galera_ist_mysqldump,debug.result
3+
@@ -180,6 +180,103 @@
44
DROP TABLE t1;
55
COMMIT;
66
SET AUTOCOMMIT=ON;
77
+Performing State Transfer on a server that has been killed and restarted
88
+while a DDL was in progress on it
9-
+connection node_1;
109
+CREATE TABLE t1 (f1 CHAR(255)) ENGINE=InnoDB;
1110
+SET AUTOCOMMIT=OFF;
1211
+START TRANSACTION;
@@ -15,7 +14,6 @@
1514
+INSERT INTO t1 VALUES ('node1_committed_before');
1615
+INSERT INTO t1 VALUES ('node1_committed_before');
1716
+INSERT INTO t1 VALUES ('node1_committed_before');
18-
+connection node_2;
1917
+START TRANSACTION;
2018
+INSERT INTO t1 VALUES ('node2_committed_before');
2119
+INSERT INTO t1 VALUES ('node2_committed_before');
@@ -24,12 +22,9 @@
2422
+INSERT INTO t1 VALUES ('node2_committed_before');
2523
+COMMIT;
2624
+SET GLOBAL debug_dbug = 'd,sync.alter_opened_table';
27-
+connection node_1;
2825
+ALTER TABLE t1 ADD COLUMN f2 INTEGER;
29-
+connection node_2;
3026
+SET wsrep_sync_wait = 0;
3127
+Killing server ...
32-
+connection node_1;
3328
+SET AUTOCOMMIT=OFF;
3429
+START TRANSACTION;
3530
+INSERT INTO t1 (f1) VALUES ('node1_committed_during');
@@ -44,17 +39,14 @@
4439
+INSERT INTO t1 (f1) VALUES ('node1_to_be_committed_after');
4540
+INSERT INTO t1 (f1) VALUES ('node1_to_be_committed_after');
4641
+INSERT INTO t1 (f1) VALUES ('node1_to_be_committed_after');
47-
+connect node_1a_galera_st_kill_slave_ddl, 127.0.0.1, root, , test, $NODE_MYPORT_1;
4842
+SET AUTOCOMMIT=OFF;
4943
+START TRANSACTION;
5044
+INSERT INTO t1 (f1) VALUES ('node1_to_be_rollbacked_after');
5145
+INSERT INTO t1 (f1) VALUES ('node1_to_be_rollbacked_after');
5246
+INSERT INTO t1 (f1) VALUES ('node1_to_be_rollbacked_after');
5347
+INSERT INTO t1 (f1) VALUES ('node1_to_be_rollbacked_after');
5448
+INSERT INTO t1 (f1) VALUES ('node1_to_be_rollbacked_after');
55-
+connection node_2;
5649
+Performing --wsrep-recover ...
57-
+connection node_2;
5850
+Starting server ...
5951
+Using --wsrep-start-position when starting mysqld ...
6052
+SET AUTOCOMMIT=OFF;
@@ -65,7 +57,6 @@
6557
+INSERT INTO t1 (f1) VALUES ('node2_committed_after');
6658
+INSERT INTO t1 (f1) VALUES ('node2_committed_after');
6759
+COMMIT;
68-
+connection node_1;
6960
+INSERT INTO t1 (f1) VALUES ('node1_to_be_committed_after');
7061
+INSERT INTO t1 (f1) VALUES ('node1_to_be_committed_after');
7162
+INSERT INTO t1 (f1) VALUES ('node1_to_be_committed_after');
@@ -80,7 +71,6 @@
8071
+INSERT INTO t1 (f1) VALUES ('node1_committed_after');
8172
+INSERT INTO t1 (f1) VALUES ('node1_committed_after');
8273
+COMMIT;
83-
+connection node_1a_galera_st_kill_slave_ddl;
8474
+INSERT INTO t1 (f1) VALUES ('node1_to_be_rollbacked_after');
8575
+INSERT INTO t1 (f1) VALUES ('node1_to_be_rollbacked_after');
8676
+INSERT INTO t1 (f1) VALUES ('node1_to_be_rollbacked_after');
@@ -98,7 +88,6 @@
9888
+1
9989
+COMMIT;
10090
+SET AUTOCOMMIT=ON;
101-
+connection node_1;
10291
+SELECT COUNT(*) = 2 FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_NAME = 't1';
10392
+COUNT(*) = 2
10493
+1
@@ -112,6 +101,6 @@
112101
+COMMIT;
113102
+SET AUTOCOMMIT=ON;
114103
+SET GLOBAL debug_dbug = $debug_orig;
115-
connection node_1;
116104
CALL mtr.add_suppression("Slave SQL: Error 'The MySQL server is running with the --skip-grant-tables option so it cannot execute this statement' on query");
117105
DROP USER sst;
106+
CALL mtr.add_suppression("Slave SQL: Error 'The MySQL server is running with the --skip-grant-tables option so it cannot execute this statement' on query");

0 commit comments

Comments
 (0)