Skip to content

Commit 87944c1

Browse files
authored
Merge pull request #228 from codership/mysql-wsrep-bugs_5.6-v25-GCF-1058-followup
GCF-1058 MTR test galera.MW-86 fails on repeated runs
2 parents 5d00503 + a43524c commit 87944c1

File tree

5 files changed

+8
-1
lines changed

5 files changed

+8
-1
lines changed

mysql-test/suite/galera/r/MW-86-wait1.result

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ SET SESSION wsrep_sync_wait = 1;
55
SET GLOBAL debug = "+d,sync.wsrep_apply_cb";
66
CREATE TABLE t_wait1 (f1 INTEGER) ENGINE=InnoDB;
77
INSERT INTO t_wait1 VALUES (1);
8+
SET SESSION debug_sync = "now WAIT_FOR sync.wsrep_apply_cb_reached";
89
SHOW BINARY LOGS;
910
SHOW BINLOG EVENTS;
1011
SHOW COLUMNS FROM t1;

mysql-test/suite/galera/r/MW-86-wait8.result

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ SET GLOBAL debug = "+d,sync.wsrep_apply_cb";
66
CREATE TABLE t_wait8 (f1 INTEGER) ENGINE=InnoDB;
77
INSERT INTO t_wait8 VALUES (1);
88
SET GLOBAL wsrep_provider_options = "repl.causal_read_timeout=PT0.1S";
9+
SET SESSION debug_sync = "now WAIT_FOR sync.wsrep_apply_cb_reached";
910
SHOW BINARY LOGS;
1011
SHOW BINLOG EVENTS;
1112
SHOW COLUMNS FROM t1;

mysql-test/suite/galera/t/MW-86-wait1.test

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ INSERT INTO t_wait1 VALUES (1);
2222

2323
--connection node_2
2424

25+
SET SESSION debug_sync = "now WAIT_FOR sync.wsrep_apply_cb_reached";
26+
2527
--disable_result_log
2628

2729
SHOW BINARY LOGS;

mysql-test/suite/galera/t/MW-86-wait8.test

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ INSERT INTO t_wait8 VALUES (1);
2323
--let $wsrep_provider_options_orig = `SELECT @@wsrep_provider_options`
2424
SET GLOBAL wsrep_provider_options = "repl.causal_read_timeout=PT0.1S";
2525

26+
SET SESSION debug_sync = "now WAIT_FOR sync.wsrep_apply_cb_reached";
27+
2628
--disable_result_log
2729

2830
--error ER_LOCK_WAIT_TIMEOUT

sql/wsrep_applier.cc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,8 @@ wsrep_cb_status_t wsrep_apply_cb(void* const ctx,
207207
{
208208
const char act[]=
209209
"now "
210-
"wait_for signal.wsrep_apply_cb";
210+
"SIGNAL sync.wsrep_apply_cb_reached "
211+
"WAIT_FOR signal.wsrep_apply_cb";
211212
DBUG_ASSERT(!debug_sync_set_action(thd,
212213
STRING_WITH_LEN(act)));
213214
};);

0 commit comments

Comments
 (0)