Commit Graph

648 Commits

Author SHA1 Message Date
8bfb4f231a Merge branch '2.1' into 2.2 2018-03-06 10:38:01 +02:00
a0c890cdf6 Add maxadmin output to mxs1678_relay_master
This should make test failure analysis easier.
2018-03-05 14:02:41 +02:00
cab827b0a4 Fix replication after failover_mysqlmon
When the test finishes and is about to check whether MaxScale is alive,
the servers should be cleared from maintenance mode and the replication
should be fixed. This way the test will clean up after itself.
2018-03-05 14:02:41 +02:00
65216f5e16 Reset slave when changing master
When the test changes the master, it should reset the slave configuration
on the new master. This way no circular replication topologies are formed
and the monitor can be expected to perform correctly.
2018-03-05 14:02:41 +02:00
39d3c42c94 Merge branch '2.1' into 2.2 2018-03-01 17:52:42 +02:00
aab039f783 MXS-1677: Add test case
Added test case that reproduces the problem and verified that it is fixed.
2018-02-24 17:13:00 +02:00
8e31b30d19 MXS-1678: Add test case
Added test case that checks that relay master status is not lost when IO
thread is stopped.
2018-02-21 10:43:12 +02:00
e56aedb85f Reset failures if auto_failover is disabled
When auto_failover has been disabled due to failure to perform automatic
failover, the test should reset the number of failures. Resetting it
before the check for the log message allows the test to still fail if the
message is missing.
2018-02-20 09:59:05 +02:00
3c153291f2 Merge branch '2.1' into 2.2 2018-02-15 14:23:48 +02:00
b1300fdb01 Sync slaves after creating new users
After the users in the local_address test are created, the slaves need to
be synced to make sure that users have replicated to all servers.
2018-02-15 14:20:08 +02:00
5941f9d3b3 Silence debugging commands
If verbose mode is not enabled, the exact commands don't need to be
printed.
2018-02-14 14:47:03 +02:00
2e920af845 Change expected result of mysqlmon_rejoin_bad2
Instead of the current master rejoining to the diverged master, the
current master should remain as the master server. This behavior should be
explained by the extra GTID event injected by the failover process.
2018-02-13 11:35:13 +02:00
45ad6f943f Validate master data inside transaction
The insertion and subsequent read of the data into the master in
`generate_traffic_and_check` will now be done inside a transaction. This
keeps the behavior consistent with the `check` function that only inserts
one row.
2018-02-13 11:35:12 +02:00
b468f2f639 Check for failover turned off if failover stress tests fails
If there are no masters at the end of the test, it suggests the
auto failover has been turned off. Check that.
2018-02-12 16:30:43 +02:00
062da5c956 Remove master count assertion in mysqlmon_failover_stress
The assertion can be triggered if failover has failed. This is expected
behavior if the master has executed events that the slaves haven't
received.
2018-02-12 16:01:07 +02:00
f7857518f3 Mxs 1140 keepalived (#166)
add keepalived test
2018-02-12 15:49:07 +02:00
5c10d0ae92 Merge branch '2.1' into 2.2 2018-02-12 14:00:08 +02:00
d93907d6a8 Increase timeouts for slave synchronization
It is possible that replication is severely lagging when slaves are being
synchronized. This means that a timeout of 120 seconds might not be
enough.
2018-02-12 13:31:10 +02:00
4714ca7b32 fix tables in README.md 2018-02-09 21:58:10 +02:00
41935fb6d3 add README.md for mdbci operations 2018-02-09 21:58:10 +02:00
2a93cfac8c fix big and big15 templates 2018-02-09 21:58:10 +02:00
5a33a5a013 Merge branch '2.1' into 2.2 2018-02-08 18:39:45 +02:00
716f39bc8b local_address: Add directories to path 2018-02-08 18:31:23 +02:00
e641de2930 Fix cdc_datatypes
The test did not correctly handle quoted or NULL value comparisons.
2018-02-08 16:59:00 +02:00
036a4cedcf MXS-1653: Add test case
Added test case that reproduces the problem.
2018-02-08 16:59:00 +02:00
91f4372478 Update mxs280_select_outfile
The error message is no longer logged as it wasn't a real error.
2018-02-08 14:04:16 +02:00
b34e44d34a Merge branch '2.1' into 2.2 2018-02-08 13:43:52 +02:00
155fcd08df Do not fail local_address test if only one IP available
Instead do as much as possible.
2018-02-08 13:15:34 +02:00
bff4f05e3b Merge branch '2.1' into 2.2 2018-02-08 12:47:48 +02:00
458edb9b1d Do not crash if "127.0.0.1" is not present 2018-02-08 12:47:34 +02:00
6a1aba70e7 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.
2018-02-07 16:07:16 +02:00
4420730f31 Start all tests with read_only disabled
Explicitly checking and setting read_only allows all tests to have a
consistent backend state.
2018-02-07 16:07:16 +02:00
6132ebd24f MXS-1643: Add test case
Added test case that checks that the correct state changes are made and no
extra events are triggered.

Also cleaned up the log checking function.
2018-02-06 14:51:07 +02:00
9f7189a9a4 Sync slaves and writer thread in binlog_change_master
The test uses a separate writer thread to insert data into the
master. This thread must be halted before the blocking of the master
happens as the slaves must catch up. Once slaves have caught up and the
master is blocked, the writer thread can continue doing inserts.

At the end of the test slaves must also be synchronized before the
inserted data is validated. This prevents test failures due to slave lag.
2018-02-05 10:24:51 +02:00
aac8c41800 Merge branch '2.1' into 2.2 2018-02-05 10:17:31 +02:00
e670596486 Fix local_address
It included the list instead of the vector header.
2018-02-05 09:33:40 +02:00
e1f1d8e58a Merge branch '2.1' into 2.2 2018-02-02 16:05:14 +02:00
facb8d60f7 MXS-1635 Test program for local_address
Tests that local_address is taken into account. However, at the time
of writing the maxscale VM does not have two usable IP addresses, so
we only test that explicitly specifying an IP-address does not break
things.

Locally it has been confirmed that this indeed works the way it is
supposed to.
2018-02-02 15:17:22 +02:00
d7d2d3349d Reset server configuration in check_backend
By resetting the configuration in the check_backend test, the backend
servers are guaranteed to use the correct configuration when started.
2018-02-02 12:28:07 +02:00
84845a5732 Use basic configuration for mxs812_2
The test repeatedly blocks and unblocks a master which goes unnoticed by
the monitor due to the 10 second read timeouts in the monitor
configuration in the longblob template. The replication template uses the
default timeouts which makes the test actually exercise the functionality
that it is intended to test.
2018-02-02 12:28:07 +02:00
0d037b2c24 Add configuration reset command
Resetting the settings makes it possible to start a test from a known good
configuration.
2018-02-02 12:28:07 +02:00
943c82b33b Extend cdc_datatypes test
The test now also creates TIME type values and checks that they are
converted correctly. Also added NULL value tests for all values and made
required adjustments to the code.
2018-02-02 12:24:25 +02:00
2c04adafd1 fix kerberos test and mxs1516 test 2018-01-31 18:17:50 +02:00
8ebac86406 Simplify mxs431
The test unnecessarily restarted MaxScale for no obvious reason. Cleaned
up SQL queries to use new functionality.
2018-01-31 13:38:45 +02:00
d506f01de9 Add basic MaxCtrl test
The test does a very minimal check for MaxCtrl functionality.
2018-01-31 13:38:28 +02:00
4b7c334c1b Add a timeout to mxs1585
The test will hang if one of the threads doesn't exit. To detect failures
faster, a timeout is needed.
2018-01-31 13:38:28 +02:00
3dfb972d87 Merge branch '2.1' into 2.2 2018-01-30 16:28:11 +02:00
f9cc2d5bbb use 'mdbci destroy' instead of 'vagrant destroy' (#163)
use mdbci destroy instead of vagrant destroy
2018-01-30 15:48:05 +02:00
5bc945df3f Allow monitor to stabilize in mxs1516
The test needs to give the monitor enough time to detect the change in the
replication topology in order for it to work.
2018-01-30 11:08:41 +02:00
524e55bf52 Sync slaves before checking MaxScale is alive
Synchronizing the slaves before checking that MaxScale is still alive
makes sure the slave servers have settled down to a known state.
2018-01-30 11:08:41 +02:00