Fix mxs359_read_only
Due to the changes in the monitor, an explicit failcount=1 and extra waits are required to make sure the master actually changes.
This commit is contained in:
parent
a9e2364979
commit
514b5f7856
@ -8,6 +8,7 @@ servers=server1,server2,server3,server4
|
||||
user=maxskysql
|
||||
password=skysql
|
||||
monitor_interval=1000
|
||||
failcount=1
|
||||
|
||||
[RW-Split-Router]
|
||||
type=service
|
||||
|
@ -65,7 +65,7 @@ void test_new_master(TestConnections& test, std::ostream& out)
|
||||
test.try_query(test.maxscales->conn_rwsplit[0], "SELECT * FROM test.t1");
|
||||
|
||||
change_master(1, 0);
|
||||
test.maxscales->wait_for_monitor();
|
||||
test.maxscales->wait_for_monitor(2);
|
||||
|
||||
out << "Both reads and writes after master change should work" << endl;
|
||||
test.try_query(test.maxscales->conn_rwsplit[0], "INSERT INTO test.t1 VALUES (2)");
|
||||
|
Loading…
x
Reference in New Issue
Block a user