Merge branch '2.3' into 2.4
This commit is contained in:
25
system-test/false_monitor_state_change.cpp
Normal file
25
system-test/false_monitor_state_change.cpp
Normal file
@ -0,0 +1,25 @@
|
||||
/**
|
||||
* Test false server state changes when manually clearing master bit
|
||||
*/
|
||||
|
||||
#include <maxtest/testconnections.hh>
|
||||
|
||||
int main(int argc, char* argv[])
|
||||
{
|
||||
TestConnections test(argc, argv);
|
||||
|
||||
test.tprintf("Block master");
|
||||
test.repl->block_node(0);
|
||||
|
||||
test.tprintf("Wait for monitor to see it");
|
||||
test.maxscales->wait_for_monitor();
|
||||
|
||||
test.tprintf("Clear master status");
|
||||
test.maxscales->ssh_node(0, "maxadmin clear server server1 master", true);
|
||||
test.maxscales->wait_for_monitor();
|
||||
|
||||
test.repl->unblock_node(0);
|
||||
test.maxscales->wait_for_monitor();
|
||||
|
||||
return test.global_result;
|
||||
}
|
Reference in New Issue
Block a user