10277 Commits

Author SHA1 Message Date
Markus Mäkelä
bee7cc2002
MXS-2046: Fix additional memory leaks
A set of memory leaks were revealed by Valgrind.
2018-09-13 14:27:21 +03:00
Markus Mäkelä
ce602daf10
Enable log_info for bug664 2018-09-13 13:14:28 +03:00
Markus Mäkelä
fa96923983
MXS-2035: Add mariabackup support to Galeramon
The mariabackup is now treated the same way as xtrabackup.
2018-09-13 13:02:32 +03:00
Markus Mäkelä
a952255c19
MXS-2046: Fix binlogrouter memory leak
The client queries were never freed.
2018-09-13 13:02:31 +03:00
Esa Korhonen
b3d6e49061 Shorten mysqlmon_failover_stress
The test fails since slaves are constantly going out-of-sync and cannot rejoin
the cluster. After three failovers, the cluster has three standalone server and
the monitor gets confused which server is the master. For now, limit the test to
two failovers.
2018-09-13 11:33:19 +03:00
Esa Korhonen
d65d815b99 Add format attribute to test functions, fix resulting errors
Fixes mysqlmon_failover_stress.
2018-09-13 11:33:19 +03:00
Markus Mäkelä
e1f2b81734
Wait for monitor in bug547
The test expects the monitor to respond within 5 seconds. This is not
guaranteed to happen so waiting for a monitor interval instead of a
hard-coded duration provides for a more stable test.
2018-09-12 22:09:51 +03:00
Markus Mäkelä
b3e2bf58d9
Wait two monitor intervals in mysqlmon_failover_auto
The master failover require two monitor intervals to complete.
2018-09-12 22:09:51 +03:00
Markus Mäkelä
6f5d089131
Use expect in mxs1947_composite_roles
`assert` was renamed to `expect`.
2018-09-12 22:09:38 +03:00
Markus Mäkelä
96a78685bc
Fix possible buffer overrun in readwritesplit
If the GWBUF length was larger than the stack buffer length, the code
would write past the buffer.
2018-09-12 22:09:38 +03:00
Markus Mäkelä
f6840fbded
Remove implicit initialization of all maxscales
The extra maxscale instances are only started if the test explicitly
requests it.
2018-09-12 22:09:38 +03:00
Markus Mäkelä
643480240c
Simplify MaxCtrl version extraction
Instead of using the correct version in in-source builds, a dummy file is
copied in place. This removes the need to explicitly include the
VERSION.cmake file.
2018-09-12 22:09:37 +03:00
Marko
077f344a20 MXS-2037 Add test case 2018-09-12 20:59:47 +03:00
Markus Mäkelä
1bffb1c26d
Fix release note generation script
The CMake command that reads the VERSION.cmake file needs to be executed
in the source root.
2018-09-12 11:05:17 +03:00
Johan Wikman
d04c7135b0 Update change log and release notes 2018-09-12 09:43:36 +03:00
Markus Mäkelä
d7b7f43efb
Rename misleading function
The expecting resultset function does not expect a resultset but a text
protocol result.
2018-09-12 08:44:31 +03:00
Markus Mäkelä
e15b0e2147
MXS-2041: Fix crash on failed schemarouter session
When the setting up of filters for a session fails, the DCB is closed and
the client DCB's session pointer is set to NULL. This needs to be checked
in the schemarouter before the `m_client->session` pointer is used.

The act of setting the session pointer to NULL should not be necessary as
the session is freed once the reference count drops down to zero. Due to
the fact that changing this would require moderate changes in session code
means that it should not be done in a patch release as the risks are too
high.
2018-09-12 08:44:31 +03:00
Markus Mäkelä
9c08d78304
Add missing error messages
If tee filter creation fails, it would not log an error message.
2018-09-12 08:44:31 +03:00
Esa Korhonen
c04073a96c MXS-2040 Increase default monitor timeouts
All three timeouts are now three seconds. This should reduce the amount of
timeout errors users get during failover/switchover.
2018-09-11 12:31:41 +03:00
Esa Korhonen
ad71655a36 MXS-2036 Redirect slaves with stopped SQL threads
This is somewhat questionable, as the slaves won't be able to really
replicate from the new master. However, not doing this causes the wrong
master to be selected after failover unless the new master has a majority
of slaves under it.
2018-09-11 10:27:31 +03:00
dapeng huang
087272c3e4 fix multistatment hang (#180) 2018-09-11 08:39:12 +03:00
Markus Mäkelä
c878146c24
MXS-1947: Add test case
The test checks that composite roles work.
2018-09-10 21:47:47 +03:00
Markus Mäkelä
889877c0ab
MXS-1947: Add support for composite roles
Added support for composite roles for 10.2 and newer versions. As
recursive CTEs are required to extract the role mappings, composite roles
aren't supported on 10.1.
2018-09-10 21:47:47 +03:00
Markus Mäkelä
9e0042b3b5
Fix symbolic VERSION file
The file is included from locations other than the source root. Due to
this, it needs to be prefixed with ${CMAKE_SOURCE_DIR}.
2018-09-10 21:47:03 +03:00
Markus Mäkelä
31f6d49ddb
Add symbolic VERSION file
The VERSION.cmake file defines which VERSION.cmake file is included. By
changing the file that it points to, the version can be changed without it
affecting other parts of the code that use it.
2018-09-10 15:11:18 +03:00
Markus Mäkelä
8896b0275f
Recreate 2.2.14 release notes
Generated the release notes with the release note generation script.
2018-09-10 15:02:15 +03:00
Markus Mäkelä
64177276be
Automatically generate relese notes
As most of the release notes are "boilerplate text", the changing parts
can be easily scripted.
2018-09-10 15:01:41 +03:00
Markus Mäkelä
eed2628cff
Rewrite issue listing script
Rewrote the script in python and leveraged the dictionary CSV processor to
prevent field number mismatches. Combined the two scripts into one so that
all user-facing issues that are fixed can be easily shown in the release
notes.
2018-09-10 15:01:29 +03:00
Markus Mäkelä
73405c8ff9
Stabilize bug676
The test should now be stabler as it waits for a monitor interval instead
of a set amount of seconds.
2018-09-10 15:01:29 +03:00
Johan Wikman
6279ab350c Rename TestConnections::assert() to TestConnections::expect()
Allows the including of <assert.h>.
2018-09-10 10:24:46 +03:00
Timofey Turenko
bcacdf9358 Merge branch 'run_test_snapshot_fix' into 2.2 2018-09-04 14:40:03 +03:00
Markus Mäkelä
2e90e77baa
MXS-2027: Set load to inactive on error
The data loading should be set to inactive if an error is encountered, not
to active.
2018-09-04 11:04:44 +03:00
Markus Mäkelä
15eba3ac75
Add 2.2.14 release notes 2018-09-04 10:54:24 +03:00
Markus Mäkelä
d7dd636c9a
Add table filtering to avrorouter
The filtering is implemented with PCRE2 regular expressions and as such is
not the most user-friendly interface.
2018-09-04 10:50:31 +03:00
Timofey Turenko
b99390f3e0 install Maxscale on all VMs in run_test_snapshot 2018-09-03 16:35:43 +03:00
Esa Korhonen
79ba89fba1 MXS-2034 Set query_retry_timeout
Was setting query_retry instead.
2018-09-03 10:46:32 +03:00
Markus Mäkelä
b2fea99dbc
Fix set_env.sh
The -gt operator should be used to compared numbers.
2018-08-31 12:12:11 +03:00
Timofey Turenko
19a84569fe add compatibility with one Maxscale template to set_env.sh 2018-08-30 14:26:19 +03:00
Markus Mäkelä
4c5e18b4f0
MXS-2033: Require only MASTER_SSL_CA
MASTER_SSL_CERT and MASTER_SSL_KEY are optional and should not be
required.
2018-08-30 00:30:46 +03:00
Markus Mäkelä
5f4aa46552
MXS-2027: Store LOAD DATA state inside MXS_SESSION
By storing the data gathere by readwritesplit inside the session, the
protocol will be aware of the state of the LOAD DATA LOCAL INFILE
execution. This prevents misinterpretation of the data which previously
led to closed connections, effectively rendering LOAD DATA LOCAL INFILE
unusable.

This change is a temporary solution to a problem that needs to be solved
at the protocol level. The changes required to implement this are too big
to add into a bug fix release.
2018-08-29 18:10:51 +03:00
Markus Mäkelä
e38e08089a
Skip parsing during LOAD DATA LOCAL INFILE
The code parsed queries even when a LOAD DATA LOCAL INFILE was in
progress. This caused the data to be misinterpreted as actual commands.
2018-08-29 18:10:51 +03:00
Markus Mäkelä
e4fdaf0c50
MXS-1735: Clarify SSL documentation
Explicitly state that servers only require `ssl_ca_cert` and that
`ssl_cert` and `ssl_key` are optional in certain cases. Updated the
wording of all parameters and removed obsolete or false documentation.
2018-08-29 18:10:51 +03:00
Timofey Turenko
39016c410c use different hostname for second Maxscale VM 2018-08-29 12:00:52 +03:00
Timofey Turenko
4fd6d075cb doc and astyle fixes 2018-08-29 12:00:52 +03:00
Timofey Turenko
0ce183d7e3 stop monitor for all Maxscales in rw_slect_insert_test 2018-08-29 12:00:52 +03:00
Timofey Turenko
4887bce398 use different way to get own IP in keepalive tests 2018-08-29 12:00:52 +03:00
Timofey Turenko
7e5353dae8 copy maxscale_000_XX to maxscale_XX variables in set_env.sh 2018-08-29 12:00:52 +03:00
Timofey Turenko
f4317121e1 fix galera nodes in twomaxscales_full template 2018-08-29 12:00:52 +03:00
Timofey Turenko
90ca096bc8 add twomaxscales_full template 2018-08-29 12:00:52 +03:00
Markus Mäkelä
51ade9e6fe
Wait two monitor intervals in failover tests
Since the failover always takes two intervals, the test also needs to wait
two intervals.
2018-08-28 08:39:38 +03:00