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:
@ -8,6 +8,7 @@ servers=server1,server2,server3,server4
|
|||||||
user=maxskysql
|
user=maxskysql
|
||||||
password=skysql
|
password=skysql
|
||||||
monitor_interval=1000
|
monitor_interval=1000
|
||||||
|
failcount=1
|
||||||
|
|
||||||
[RW-Split-Router]
|
[RW-Split-Router]
|
||||||
type=service
|
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");
|
test.try_query(test.maxscales->conn_rwsplit[0], "SELECT * FROM test.t1");
|
||||||
|
|
||||||
change_master(1, 0);
|
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;
|
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)");
|
test.try_query(test.maxscales->conn_rwsplit[0], "INSERT INTO test.t1 VALUES (2)");
|
||||||
|
Reference in New Issue
Block a user