You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
TO DISSAPPEAR"
Problem
-------
The test case is failing to make the slave server to "disappear".
Analysis
--------
The "crash_in_a_worker" debug sync point is relying on the fact that the
workload will be parallelized and reach MTS worker #2, but on slow
systems the parallelization will not happen and the server will fail to
"disappear".
Fix
---
Ensure that the workload will be distributed by at all the workers
even on slow systems.
Copy file name to clipboardExpand all lines: mysql-test/suite/rpl/r/rpl_mts_logical_clock_recovery.result
+25-6Lines changed: 25 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -3,23 +3,42 @@ Warnings:
3
3
Note #### Sending passwords in plain text without SSL/TLS is extremely insecure.
4
4
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.
5
5
[connection master]
6
-
SET GLOBAL DEBUG ='+d,set_commit_parent_100';
6
+
# Adding debug point 'set_commit_parent_100' to @@GLOBAL.debug
7
7
CREATE TABLE t1 (a int primary key) engine=innodb;
8
8
CREATE TABLE t2 (a int primary key) engine=innodb;
9
9
CREATE TABLE t3 (a int primary key) engine=innodb;
10
10
CREATE TABLE t4 (a int primary key) engine=innodb;
11
11
include/sync_slave_sql_with_master.inc
12
-
include/stop_slave.inc
13
-
SET GLOBAL DEBUG ='+d,crash_in_a_worker';
14
-
SET GLOBAL DEBUG ='-d,set_commit_parent_100';
15
-
SET GLOBAL DEBUG ='+d,set_commit_parent_150';
16
-
INSERT INTO t1 values (1),(2),(3);
12
+
include/stop_slave_sql.inc
13
+
# Adding debug point 'crash_in_a_worker' to @@GLOBAL.debug
14
+
# Removing debug point 'set_commit_parent_100' from @@GLOBAL.debug
15
+
# Adding debug point 'set_commit_parent_150' to @@GLOBAL.debug
16
+
INSERT INTO t1 values (0);
17
17
BEGIN;
18
18
INSERT INTO t2 values (1),(2),(3);
19
19
UPDATE t2 SET a= a+1 WHERE a=3;
20
20
COMMIT;
21
+
BEGIN;
21
22
INSERT INTO t3 values (1),(2),(3);
23
+
UPDATE t3 SET a= a+1 WHERE a=3;
24
+
COMMIT;
25
+
BEGIN;
22
26
INSERT INTO t4 values (1),(2),(3);
27
+
UPDATE t4 SET a= a+1 WHERE a=3;
28
+
COMMIT;
29
+
BEGIN;
30
+
INSERT INTO t1 values (1),(2),(3);
31
+
UPDATE t1 SET a= a+1 WHERE a=3;
32
+
COMMIT;
33
+
# Removing debug point 'set_commit_parent_150' from @@GLOBAL.debug
0 commit comments