File tree Expand file tree Collapse file tree 3 files changed +13
-10
lines changed Expand file tree Collapse file tree 3 files changed +13
-10
lines changed Original file line number Diff line number Diff line change 1
1
connection node_2;
2
2
connection node_1;
3
+ CALL mtr.add_suppression("Event .* Update_rows.* apply failed");
4
+ CALL mtr.add_suppression("Inconsistency detected");
5
+ CALL mtr.add_suppression("Failed to apply write set:.*");
6
+ CALL mtr.add_suppression("Event .* Write_rows.* apply failed");
3
7
CREATE TABLE t1 (f1 INTEGER PRIMARY KEY DEFAULT 0, f2 char(12));
4
8
CREATE TABLE t3 (f1 INTEGER PRIMARY KEY DEFAULT 0, f2 char(12));
5
9
START TRANSACTION;
@@ -10,7 +14,6 @@ COMMIT;
10
14
connection node_2;
11
15
SET GLOBAL wsrep_applier_retry_count = 2;
12
16
SET GLOBAL debug_dbug = "d,apply_event_fail_once:o,/dev/null";
13
- CALL mtr.add_suppression("Event .* Write_rows.* apply failed");
14
17
connection node_1;
15
18
START TRANSACTION;
16
19
UPDATE t3 SET f2 = 'ax' WHERE f1 = 1;
@@ -46,9 +49,6 @@ connection node_1;
46
49
SET wsrep_sync_wait=0;
47
50
CREATE TABLE t2 (f1 INTEGER PRIMARY KEY DEFAULT 0, f2 char(12));
48
51
connection node_2;
49
- CALL mtr.add_suppression("Event .* Update_rows.* apply failed");
50
- CALL mtr.add_suppression("Inconsistency detected");
51
- CALL mtr.add_suppression("Failed to apply write set:.*");
52
52
SET GLOBAL wsrep_applier_retry_count = 2;
53
53
SET GLOBAL debug_dbug = '';
54
54
SET GLOBAL debug_dbug = "d,apply_event_fail_always:o,/dev/null";
Original file line number Diff line number Diff line change 5
5
--source include/galera_cluster.inc
6
6
--source include/have_debug_sync.inc
7
7
8
+ CALL mtr.add_suppression("Event .* Update_rows.* apply failed");
9
+ CALL mtr.add_suppression("Inconsistency detected");
10
+ CALL mtr.add_suppression("Failed to apply write set:.*");
11
+ CALL mtr.add_suppression("Event .* Write_rows.* apply failed");
12
+
8
13
#
9
14
# Case 1: Retrying succeeds after one retry event, no error is raised.
10
15
#
@@ -26,7 +31,6 @@ COMMIT;
26
31
27
32
SET GLOBAL wsrep_applier_retry_count = 2;
28
33
SET GLOBAL debug_dbug = "d,apply_event_fail_once:o,/dev/null";
29
- CALL mtr.add_suppression("Event .* Write_rows.* apply failed");
30
34
31
35
--connection node_1
32
36
START TRANSACTION;
@@ -86,9 +90,6 @@ SET wsrep_sync_wait=0;
86
90
CREATE TABLE t2 (f1 INTEGER PRIMARY KEY DEFAULT 0, f2 char(12));
87
91
88
92
--connection node_2
89
- CALL mtr.add_suppression("Event .* Update_rows.* apply failed");
90
- CALL mtr.add_suppression("Inconsistency detected");
91
- CALL mtr.add_suppression("Failed to apply write set:.*");
92
93
93
94
SET GLOBAL wsrep_applier_retry_count = 2;
94
95
SET GLOBAL debug_dbug = '';
Original file line number Diff line number Diff line change @@ -311,9 +311,11 @@ int wsrep_apply_events(THD* thd,
311
311
trans_release_savepoint (thd, savepoint);
312
312
}
313
313
314
- if (ret && ! thd-> wsrep_has_ignored_error )
314
+ if (ret || wsrep_thd_has_ignored_error ( thd) )
315
315
{
316
- wsrep_store_error (thd, err, include_msg);
316
+ if (ret) {
317
+ wsrep_store_error (thd, err, include_msg);
318
+ }
317
319
wsrep_dump_rbr_buf_with_header (thd, data.data (), data.size ());
318
320
}
319
321
You can’t perform that action at this time.
0 commit comments