Skip to content

Commit 3fdbb86

Browse files
Kapil Agrawalsurbhat1595
authored andcommitted
Bug#32636922 PB2 FAILURES ON 5.7 DUE TO BUG#26883680
Problem ------- 1. rpl_mts_spco_deadlock_slave_trans_retries_hang fails on Linux Valgrind due to wrong warning suppression getting suppressed. 2. rpl_mts_spco_deadlock_hang_on_non_temp_error fails on windows due to wrong pattern matching count. Solution -------- 1. To fix this issue, Warning that workers print is modified such that it will work for all worker Ids. 2. To fix this issue, the assert file has been changed to a different error log such that it doesn't encounter the matching pattern more than once. RB#26080 (cherry picked from commit 685ce79b271703d29d4cb749dfc775be7a3dea0f)
1 parent a5c44bd commit 3fdbb86

4 files changed

+4
-3
lines changed

mysql-test/suite/rpl/r/rpl_mts_spco_deadlock_slave_trans_retries_hang.result

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ include/start_slave_sql.inc
5050
ROLLBACK;
5151
#
5252
# Add error supressions.
53-
CALL mtr.add_suppression("Worker 2 failed executing transaction.*");
53+
CALL mtr.add_suppression("Worker .* failed executing transaction.*");
5454
#
5555
# 3.2. Wait till the co-ordinator thread to error out with ER_LOCK_DEADLOCK.
5656
include/wait_for_slave_sql_error.inc [errno=1213]
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
--no-console --log_error=$MYSQLTEST_VARDIR/tmp/rpl_mts_spco_deadlock_hang_on_non_temp_error.2.err

mysql-test/suite/rpl/t/rpl_mts_spco_deadlock_hang_on_non_temp_error.test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ COMMIT;
189189
--echo # 3.11 Check that worker 2 did not *retry* transaction-2
190190
--echo # before throwing ER_DUP_ENTRY error (non-temporary error).
191191
--echo #
192-
--let $assert_file= $MYSQLTEST_VARDIR/log/mysqld.2.err
192+
--let $assert_file= $MYSQLTEST_VARDIR/tmp/rpl_mts_spco_deadlock_hang_on_non_temp_error.2.err
193193
--let $assert_only_after = CURRENT_TEST: rpl.rpl_mts_spco_deadlock_hang_on_non_temp_error
194194
--let $assert_count = 1
195195
--let $assert_select = Error 'Duplicate entry '1' for key 'PRIMARY'' on query

mysql-test/suite/rpl/t/rpl_mts_spco_deadlock_slave_trans_retries_hang.test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ ROLLBACK;
149149

150150
--echo #
151151
--echo # Add error supressions.
152-
CALL mtr.add_suppression("Worker 2 failed executing transaction.*");
152+
CALL mtr.add_suppression("Worker .* failed executing transaction.*");
153153

154154
--echo #
155155
--echo # 3.2. Wait till the co-ordinator thread to error out with ER_LOCK_DEADLOCK.

0 commit comments

Comments
 (0)