Merge branch '2.3' into 2.4

This commit is contained in:
Esa Korhonen
2020-07-28 16:00:02 +03:00
943 changed files with 12 additions and 11 deletions

43
system-test/bug676.cpp Normal file
View File

@ -0,0 +1,43 @@
/**
* @file bug676.cpp reproducing attempt for bug676
* - connect to RWSplit
* - stop node0
* - sleep 20 seconds
* - reconnect
* - check if 'USE test' is ok
* - check MaxScale is alive
*/
#include <iostream>
#include <maxtest/testconnections.hh>
int main(int argc, char* argv[])
{
TestConnections::require_galera(true);
TestConnections test(argc, argv);
test.set_timeout(30);
test.maxscales->connect_maxscale(0);
test.tprintf("Stopping node 0");
test.galera->block_node(0);
test.maxscales->close_maxscale_connections(0);
test.stop_timeout();
test.tprintf("Waiting until the monitor picks a new master");
test.maxscales->wait_for_monitor();
test.set_timeout(30);
test.maxscales->connect_maxscale(0);
test.try_query(test.maxscales->conn_rwsplit[0], "USE test");
test.try_query(test.maxscales->conn_rwsplit[0], "show processlist;");
test.maxscales->close_maxscale_connections(0);
test.stop_timeout();
test.galera->unblock_node(0);
return test.global_result;
}