MXS-1643: Only test existence of extra events mxs1643_extra_events
Don't test failover functionality when it is not needed. The bug is only about the extra events that appear when a master is demoted and a slave is promoted.
This commit is contained in:
parent
b7fdaf0340
commit
a6182d48bf
@ -8,16 +8,6 @@ servers= server1,server2,server3,server4
|
||||
user=maxskysql
|
||||
passwd= skysql
|
||||
monitor_interval=1000
|
||||
detect_standalone_master=true
|
||||
failcount=1
|
||||
allow_cluster_recovery=true
|
||||
replication_user=repl
|
||||
replication_password=repl
|
||||
backend_connect_timeout=3
|
||||
backend_read_timeout=3
|
||||
backend_write_timeout=3
|
||||
auto_failover=true
|
||||
auto_rejoin=true
|
||||
|
||||
[RW Split Router]
|
||||
type=service
|
||||
|
@ -7,7 +7,6 @@
|
||||
|
||||
int main(int argc, char** argv)
|
||||
{
|
||||
Mariadb_nodes::require_gtid(true);
|
||||
TestConnections test(argc, argv);
|
||||
|
||||
// Check that master gets the slave status when set into read-only mode
|
||||
@ -18,22 +17,14 @@ int main(int argc, char** argv)
|
||||
test.tprintf("Check that the current master now has the slave label");
|
||||
test.check_log_err(0, "[Master, Running] -> [Running]", false);
|
||||
test.check_log_err(0, "[Master, Running] -> [Slave, Running]", true);
|
||||
execute_query(test.repl->nodes[0], "SET GLOBAL read_only=OFF");
|
||||
test.maxscales->wait_for_monitor();
|
||||
test.maxscales->ssh_node_f(0, true, "truncate -s 0 /var/log/maxscale/maxscale.log");
|
||||
|
||||
// Check that the Master and Slave status aren't both set
|
||||
test.tprintf("Block master and wait for monitor to detect it.");
|
||||
test.repl->block_node(0);
|
||||
execute_query(test.repl->nodes[0], "SET GLOBAL read_only=OFF");
|
||||
test.maxscales->wait_for_monitor();
|
||||
test.tprintf("Check that the new master doesn't have both slave and master labels");
|
||||
test.check_log_err(0, "[Slave, Running] -> [Master, Slave, Running]", false);
|
||||
test.check_log_err(0, "[Slave, Running] -> [Master, Running]", true);
|
||||
test.repl->unblock_node(0);
|
||||
|
||||
|
||||
test.tprintf("Cleanup");
|
||||
test.repl->execute_query_all_nodes( "STOP ALL SLAVES; RESET SLAVE ALL;");
|
||||
test.repl->fix_replication();
|
||||
return test.global_result;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user