12141 Commits

Author SHA1 Message Date
Markus Mäkelä
14fb142afb
Rewrite maxscale_process_user
Changed output format to be more robust and used stack allocated objects
instead of heap allocated ones.
2018-11-19 20:02:10 +02:00
Markus Mäkelä
74ec1e7400
Skip tests that cannot be run
If a test requires Galera but it is not available, it is now skipped. All
tests that explicitly use the `test.galera` member as well as all tests
that use a Galera configuration now require that Galera is present.
2018-11-19 20:02:10 +02:00
Markus Mäkelä
11f607de8d
Merge branch '2.2' into 2.3 2018-11-19 18:49:45 +02:00
Markus Mäkelä
37973777d5
MXS-2081: Prevent unwanted stripping of binaries
RPM packages by default strip all executables on some systems after
installation. To work around this, the post install part needs to be
prevented. This does not mean the post-install scripts used to create the
directories required by MaxScale.
2018-11-19 09:23:48 +02:00
Markus Mäkelä
b00d9a944b
Merge branch '2.3.1' into 2.3 2018-11-16 16:13:02 +02:00
Markus Mäkelä
8b50df1388
Install systemd-devel on SLES also 2018-11-16 16:09:05 +02:00
Markus Mäkelä
21be08f84a
Merge branch '2.3.1' into 2.3 2018-11-16 16:06:09 +02:00
Markus Mäkelä
35b3dd4dd8
Install systemd libraries
Install systemd libraries in the install script.
2018-11-16 15:55:01 +02:00
Esa Korhonen
bba0bc0f31 MXS-2158 Relax requirements for manual rejoin
The operation is now allowed even if the rejoining server has empty gtid:s.
Auto-rejoin keeps the safeties on.
2018-11-16 13:03:30 +02:00
Esa Korhonen
6a1cfddb43 MXS-2158 Clean up gtid updating during rejoin
Error messages from update_gtids() are now printed. can_replicate_from()
no longer updates gtid:s.
2018-11-16 12:56:24 +02:00
Esa Korhonen
715eaf6760 MXS-1598 Explain how monitor measures replication lag 2018-11-16 10:13:16 +02:00
Markus Mäkelä
eac9b86647
MXS-2167: Change expected test outcome
The test should now pass as the functionality is implemented. Also added a
temporary workaround to firewall problems.
2018-11-15 14:24:41 +02:00
Markus Mäkelä
cbe1483028
MXS-2167: Add support for extra_port
This allows MaxScale to connect to the server even when max_connections
has been reached.
2018-11-15 14:24:41 +02:00
Markus Mäkelä
598edea203
MXS-2167: Add test case
Added a test case that reproduces the problem.
2018-11-15 14:24:41 +02:00
Markus Mäkelä
396da06eb8
Move sync_with_stdio into TestConnections constructor
This way all tests run with the same configuration.
2018-11-15 14:24:41 +02:00
Markus Mäkelä
29d96662eb
Add missing error message to check_replication
The version extraction could fail silently.
2018-11-15 14:24:41 +02:00
Esa Korhonen
4bd8630107 MXS-1598 Add replication lag test cases to mysqlmon_multimaster
The delay is added simply with the 'MASTER_DELAY'-option of
the 'CHANGE MASTER TO'-command.
2018-11-15 13:26:38 +02:00
Johan Wikman
9b850cff92 Update changelog and 2.3.1 release notes 2018-11-15 11:05:25 +02:00
Esa Korhonen
52b9cc59d5 MXS-1775 Test automatic switchover
Tests low disk space detection and automatic switchover.
2018-11-14 18:17:40 +02:00
Markus Mäkelä
6901d286fe
List increased memory use in upgrading document
The 2.3 additions could be perceived as a memory leak so a note in the
upgrading document could be helpful.
2018-11-14 16:23:48 +02:00
Markus Mäkelä
ebe41614ad
Add csmon to release notes 2018-11-14 16:23:47 +02:00
Markus Mäkelä
16bff06a50
Update release notes and upgrading document
Added a section about unknown global parameters being treated as errors to
both documents and fixed the passwd deprecation description in the
upgrading document.
2018-11-14 16:23:47 +02:00
Markus Mäkelä
213b26e7a3
MXS-1976: Suggest listener destruction
The MaxAdmin reference document now suggests destroying the listener to
immediately block the creation of new connections.
2018-11-14 16:23:47 +02:00
Markus Mäkelä
cab8a4bde8
MXS-2144: Treat server shutdown as a network error
If the server where a query is being executed is shutting down,
readwritesplit should treat it as an error to make retrying of the query
possible.

By treating server shutdowns as network errors, the same code path that is
used for actual network errors can be taken. This removes the need for any
extra retrying logic for this particular case.
2018-11-14 16:23:47 +02:00
Markus Mäkelä
37d38593d5
MXS-2100: Treat unknown global parameters as errors
Previously they merely generated warnings.
2018-11-14 16:23:47 +02:00
Markus Mäkelä
f9d18606a8
Remove unused code
The code that required these parameters was not added into 2.3 as it was
not needed.
2018-11-14 16:23:47 +02:00
Markus Mäkelä
3092a744ed
Enable verbose output on Galera startup failure
If a Galera node fails to start, enabling the verbose mode prints the
output of each SSH command. This fixes the visibility of the log file
printing.
2018-11-14 16:23:47 +02:00
Markus Mäkelä
54370618bc
Stop keepalived after the tests
Once the tests are done keepalived must be stopped. This is done to
prevent it from affecting other tests.
2018-11-14 16:23:47 +02:00
Markus Mäkelä
07231747bf
Print server logs on failure to start
When the MariaDB server exits with an error, the logs help explain why
that happened.
2018-11-14 16:23:47 +02:00
Markus Mäkelä
370483fb4b
Log slave error message on failed session command
If the master succeeds in executing a session command but the slave fails,
the error message could help explain why it failed. At the moment this is
mainly relevant for inspection of test results.
2018-11-14 16:23:46 +02:00
Markus Mäkelä
e3c9ac9e98
Document csmon grants
Documented the grants the monitor user must have in order to operate
properly.
2018-11-14 16:23:46 +02:00
Niclas Antti
77f8a3b71b MXS-2057 System test 2018-11-14 16:20:42 +02:00
Niclas Antti
e371964f8b MXS-2057 Add log output for system test, and two random code fixes 2018-11-14 16:20:42 +02:00
Niclas Antti
a84748e67f MXS-2057 Add documentation 2018-11-14 16:20:42 +02:00
Markus Mäkelä
2650a9174e
Fix addition of galera config options
The options weren't properly set as the galera nodes used different file
names.
2018-11-14 13:08:27 +02:00
Esa Korhonen
896ce87332 Allow loading any plugin for tests
Required for 'disks'-plugin.
2018-11-14 11:05:23 +02:00
Esa Korhonen
a377a9fc5a Add gtid event in reset-replication
Adds a "FLUSH TABLES" command at the end so that the new master has a non-empty
gtid_binlog_pos after the operation.
2018-11-14 11:01:48 +02:00
Esa Korhonen
14e38e4e08 MXS-2158 Return true if update_gtids() succeeds, even if no data is returned
Previously, if the server had no gtid:s, the method would fail leading to
a confusing error message. This could even totally stop the monitor from working
if a recent server version (10.X) did not have any gtid events.
2018-11-14 10:56:42 +02:00
Johan Wikman
f03c5e0fef MXS-2077 Expand 'maxctrl list sessions' somewhat
'maxctrl list sessions' will now show the connection
time and idleness in addition to the id, user, host
and service of the session. Further, the columns have
be reordered somewhat so that the id, user and host are
shown first, and the service last.
2018-11-14 09:52:15 +02:00
Markus Mäkelä
433c6708bf
Merge branch '2.2' into 2.3 2018-11-13 17:35:45 +02:00
Markus Mäkelä
cdce11391a
Add script template into Luafilter documentation
This makes copy-pasting it for testing a lot easier.
2018-11-13 16:48:03 +02:00
Markus Mäkelä
c32bb18862
Fix transaction replay checksum mismatches
The transaction replay could get mixed up with new queries if the client
managed to perform one while the delayed routing was taking place. A
proper way to solve this would be to cork the client DCB until the
transaction is fully replayed. As this change would be relatively more
complex compared to simply labeling queries that are being retried the
corking implementation is left for later when a more complete solution can
be designed.

This commit also adds some of the missing info logging for the transaction
replaying which makes analysis of failures easier.
2018-11-13 16:48:03 +02:00
Markus Mäkelä
0355398425
Fix typo in unblock_node
The command is called ip6tables.
2018-11-13 16:48:03 +02:00
Johan Wikman
ae1a062a58 MXS-2160 Use CLOCK_MONOTONIC_COARSE
We measure time in milliseconds and as CLOCK_MONOTONIC_COARSE
provides 1ms granularity we should use that since it is cheaper.
2018-11-13 16:44:30 +02:00
Markus Mäkelä
fb84b2690a
MXS-2159: Combine client capability bits
If the client sends two different sets of capability bits during the
authentication phase of an SSL enabled connection, both sets need to be
combined. This prevents capabilities from degrading mid-connection which
is the case when Oracle Connector/J drops the SSL capability bit
mid-authentication.
2018-11-13 11:37:48 +02:00
Esa Korhonen
ad52834c9b Merge branch '2.2' into 2.3 2018-11-12 14:51:49 +02:00
Esa Korhonen
f7db955101 Add proxy protocol test
The test creates a user with only the client ip as allowed host and
then uses that client to log in.
2018-11-12 14:33:59 +02:00
Markus Mäkelä
b59eb28802
Merge branch '2.2' into 2.3 2018-11-12 12:51:18 +02:00
Markus Mäkelä
ae0e9b359d
Fix use of zero-weight servers
The servers with a zero weight would be always used over ones that have a
weight. This means that the behavior was inverted and caused the
mxs2054_hybrid_cluster test to fail in 2.3.

Also fixed a typo in the deprecation message.
2018-11-12 10:13:59 +02:00
Markus Mäkelä
f2688784cf
Reconnect before sync in mxs1743_rconn_bitmask
The blocking of the nodes that happens before it could cause the
connections to break. This also removes the need for the fixing of the
replication which takes time.
2018-11-12 10:13:59 +02:00