Skip to content

Commit fe1b237

Browse files
committed
BUG#35164090 NDB MTA fails to retry temporary error [unrelated fix]
Separate patch to adapt new(since 8.0.33) test by changing its config to not allow transaction retries and then expect ER_LOCK_WAIT_TIMEOUT rather than ER_ERROR_DURING_COMMIT. Change-Id: Ib0945001855d4f41c956fbc433a8e9660ad9c0be
1 parent 3acdd83 commit fe1b237

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

mysql-test/suite/ndb_rpl/r/mta_commit_sync2.result

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ Variable_name Value
4141
replica_preserve_commit_order ON
4242
# Supress MTA errors generated by test
4343
call mtr.add_suppression(".*Could not execute Write_rows event.*");
44+
call mtr.add_suppression(".*worker thread retried transaction 1 time.*");
4445
call mtr.add_suppression(".*possibly leaving data in inconsistent state.*");
4546
call mtr.add_suppression(".*worker has stopped after at least one previous worker encountered an error when replica-preserve-commit-order was enabled.*");
4647
include/start_slave.inc
@@ -114,7 +115,7 @@ SELECT WORKER_ID, LAST_ERROR_NUMBER
114115
FROM performance_schema.replication_applier_status_by_worker
115116
WHERE LAST_ERROR_NUMBER != 0;
116117
WORKER_ID 1
117-
LAST_ERROR_NUMBER 1180
118+
LAST_ERROR_NUMBER 1205
118119
WORKER_ID 2
119120
LAST_ERROR_NUMBER 3030
120121
# Show the coordinator error number and message

mysql-test/suite/ndb_rpl/t/mta_commit_sync2.cnf

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,5 @@ replica-parallel-workers=10
99

1010
#disable-log-bin
1111
replica-preserve-commit-order=1
12-
log-replica-updates=1
12+
log-replica-updates=1
13+
replica_transaction_retries=1

mysql-test/suite/ndb_rpl/t/mta_commit_sync2.test

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ show variables like 'replica_preserve_commit_order';
3333

3434
--echo # Supress MTA errors generated by test
3535
call mtr.add_suppression(".*Could not execute Write_rows event.*");
36+
call mtr.add_suppression(".*worker thread retried transaction 1 time.*");
3637
call mtr.add_suppression(".*possibly leaving data in inconsistent state.*");
3738
call mtr.add_suppression(".*worker has stopped after at least one previous worker encountered an error when replica-preserve-commit-order was enabled.*");
3839

0 commit comments

Comments
 (0)