Skip to content

Commit 09368dd

Browse files
author
Anibal Pinto
committed
BUG#26611272: Test gr_uninstall_while_network_blocked is failling on PB2
Desciption: This test create a group of two members, where one member is put in a UNREACHABLE state and then INSERT is executed which gets blocked, then when we try to execute UNINSTALL command it returns an error that plugin cannot be uninstalled now. But if the UNINSTALL is executed before the plugin receives INSERT query, the plugin will be able to UNINSTALL successfully, that results in a test failure as is expecting UNINSTALL to fail with error ER_PLUGIN_CANNOT_BE_UNINSTALLED. Solution: To prevent the uninstall getting executed successfully, we wait for server to receive the INSERT, before executing the UNINSTALL of Group Replication plugin.
1 parent 6228bc6 commit 09368dd

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

rapid/plugin/group_replication/tests/mtr/t/gr_uninstall_while_network_blocked.test

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,10 @@ call mtr.add_suppression("Due to a plugin error, some transactions can't be cert
7272
call mtr.add_suppression("The member lost contact with a majority of the members in the group. Until the network is restored.*");
7373
set session sql_log_bin=1;
7474

75+
# Wait for INSERT to be blocked
76+
--let $wait_condition=SELECT COUNT(*)=1 FROM information_schema.processlist WHERE state='query end' AND info='INSERT INTO test.t1 VALUES(11)'
77+
--source include/wait_condition.inc
78+
7579
--echo
7680
--echo # 4. Uninstall plugin will return error due plugin being in use
7781
--error ER_PLUGIN_CANNOT_BE_UNINSTALLED

0 commit comments

Comments
 (0)