Check for failover turned off if failover stress tests fails
If there are no masters at the end of the test, it suggests the auto failover has been turned off. Check that.
This commit is contained in:
@ -488,6 +488,16 @@ void check_server_statuses(TestConnections& test)
|
||||
masters += check_server_status(test, 2);
|
||||
masters += check_server_status(test, 3);
|
||||
masters += check_server_status(test, 4);
|
||||
|
||||
if (masters == 0)
|
||||
{
|
||||
test.tprintf("No master, checking that autofail has been turned off.");
|
||||
test.log_includes(0, "disabling automatic failover");
|
||||
}
|
||||
else if (masters != 1)
|
||||
{
|
||||
test.assert(!true, "Unexpected number of masters: %d", masters);
|
||||
}
|
||||
}
|
||||
|
||||
void run(TestConnections& test)
|
||||
|
Reference in New Issue
Block a user