Description:
gr_recovery_connection_options contains this code:
let $show_statement= SHOW SLAVE STATUS FOR CHANNEL 'group_replication_recovery';
let $field= Last_IO_Error;
let $condition= 'Fatal error: Invalid (empty) username when attempting to connect to the master server. Connection attempt terminated.';
--source include/wait_show_condition.inc
This is wrong way to use wait_show_condition.inc, because $condition must begin with an operator. This causes wait_show_condition.inc to return immediately always. The correct way to use wait_show_condition.inc here would be:
let $condition = = 'Fatal error: Invalid (empty) username when attempting to connect to the master server. Connection attempt terminated.';
Note that $condition should begin with an equality operator. (Even better for this case would be to use include/wait_for_slave_io_error.inc.)
However, when adding the equality sign, the test fails. The expected error message never happens. Assuming the *intention* of the test was correct (even if the typo made it suppress the check), there is either a server bug or another bug in the test. Setting category to server just in case, change to test if needed.
The same problem occurs for two invocations of wait_show_condition.inc in this test.
How to repeat:
diff --git a/mysql-test/suite/group_replication/t/gr_recovery_connection_options.test b/mysql-test/suite/group_replication/t/gr_recovery_connection_options.test
index 8439d201208..f3b035daed9 100644
--- a/mysql-test/suite/group_replication/t/gr_recovery_connection_options.test
+++ b/mysql-test/suite/group_replication/t/gr_recovery_connection_options.test
@@ -161,7 +161,7 @@ SET DEBUG_SYNC= "now SIGNAL signal.recovery_end";
--echo # Verify that the show slave status shows specific IO_error
let $show_statement= SHOW SLAVE STATUS FOR CHANNEL 'group_replication_recovery';
let $field= Last_IO_Error;
-let $condition= 'Fatal error: Invalid (empty) username when attempting to connect to the master server. Connection attempt terminated.';
+let $condition = = 'Fatal error: Invalid (empty) username when attempting to connect to the master server. Connection attempt terminated.';
--source include/wait_show_condition.inc
--source include/stop_group_replication.inc