Add test case for ignore_external_masters + failover

The test checks that failover works even when the master of the monitored
cluster is a slave to an external masters. The test also verifies that the
servers do not get unexpected status labels.
This commit is contained in:
Markus Mäkelä
2018-02-07 00:41:49 +02:00
parent 8bf756ca56
commit 6a1aba70e7
9 changed files with 241 additions and 34 deletions

View File

@ -430,6 +430,18 @@ public:
/** Whether to require GTID based replication, defaults to false */
static void require_gtid(bool value);
/**
* Configure a server as a slave of another server
*
* The servers are configured with GTID replicating using the configured
* GTID position, either slave_pos or current_pos.
*
* @param slave The node index to assign as slave
* @param master The node index of the master
* @param type Replication type
*/
void replicate_from(int slave, int master, const char* type = "current_pos");
private:
bool check_master_node(MYSQL *conn);