MXS-1937 Add failover/switchover with server events test

The test adds a scheduled server event, the does failover, rejoin and
switchover and checks that event is manipulated correctly. Also includes
a change to the monitor to fix an invalid ALTER EVENT query when the event
definer has wildcard host.
This commit is contained in:
Esa Korhonen
2018-09-19 19:49:01 +03:00
parent e5a0b4e9bb
commit dfc10b109d
5 changed files with 291 additions and 1 deletions

View File

@ -584,6 +584,14 @@ public:
int start_maxscale(int m = 0);
void process_template(const char* src, const char* dest = "/etc/maxscale.cnf");
/**
* Get the current master server id from the cluster, as seen by rwsplit.
*
* @param m MaxScale node index
* @return Server id of the master
*/
int get_master_server_id(int m = 0);
private:
void report_result(const char* format, va_list argp);
void copy_one_mariadb_log(int i, std::string filename);