From 71e1ddda220c2d452351fc6bf240cb0bad6ccf4a Mon Sep 17 00:00:00 2001 From: Elena Stepanova Date: Tue, 25 May 2021 21:20:08 +0300 Subject: [PATCH] Race condition occurs upon server restart inside test cases Server restart is reported as failed (with exit code 0), and the whole MTR worker aborts --- mysql-test/include/wait_until_connected_again.inc | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/mysql-test/include/wait_until_connected_again.inc b/mysql-test/include/wait_until_connected_again.inc index 44b7fdb8e6b..ecba08f199f 100644 --- a/mysql-test/include/wait_until_connected_again.inc +++ b/mysql-test/include/wait_until_connected_again.inc @@ -33,10 +33,7 @@ while ($mysql_errno) { let $mysql_errno=0; } - if ($mysql_errno > 0) - { - --sleep 0.1 - } + --sleep 0.1 } --enable_query_log --enable_result_log