14673 Commits

Author SHA1 Message Date
Timofey Turenko
62082c2a12 Merge branch '2.3' into 2.4 2020-07-24 16:00:20 +03:00
Timofey Turenko
fa40845e0c Use VM to run tests
In order to avoid host overloading, execution of tests moved also to VM.
VM uses MDBCI wrapper which sends all commands to the host
2020-07-24 14:39:35 +03:00
Markus Mäkelä
82b4315fa6
Merge branch '2.3' into 2.4 2020-07-24 14:25:29 +03:00
Markus Mäkelä
429d44e2d6
Add <stdexcept> to http.hh
Fixes a compile error with GCC 10.1.
2020-07-24 14:24:13 +03:00
Markus Mäkelä
39aa129fc5
Fix narrowing conversion warnings on GCC 10.1
Using an unsigned value in a switch with signed case values produced the
error.
2020-07-24 14:23:14 +03:00
Esa Korhonen
d8eac10cb5 Merge branch '2.3' into 2.4 2020-07-24 14:05:41 +03:00
Esa Korhonen
f1a6bc37c3 MXS-2900 Rename system tests
Some of the tests have rather non-descriptive names.
2020-07-24 13:42:28 +03:00
Markus Mäkelä
5c76d3d906
Merge branch '2.3' into 2.4 2020-07-24 08:01:53 +03:00
Markus Mäkelä
aaec73a8c8
MXS-3089: Close backend on failed session command
This correctly triggers the session command response processing to accept
results from other servers than the current master backend if the session
can continue. If the session cannot continue, it will be stopped
immediately.
2020-07-23 09:26:53 +03:00
Markus Mäkelä
cf1d1178d7
MXS-3087: Fix diagnostic memory leaks
Fixed leak in load_utils.cc and the cache filter. Also changed all
instances of json_object_set with json_object_set_new to make sure it's
only used when the references are to be stolen.
2020-07-22 13:27:36 +03:00
Timofey Turenko
d99d2f21a6 Add libcurl4-gnutls-dev to test build dependecy list 2020-07-17 11:32:39 +03:00
Timofey Turenko
0e5163a3fb Make test dependency install script Non-interactive 2020-07-16 16:10:02 +03:00
Markus Mäkelä
fa32fb9a25
Merge branch '2.4.11' into 2.4 2020-07-16 09:01:26 +03:00
Markus Mäkelä
f2a837e2f1
Fix memory leak in throttlefilter
The filter would leak the buffer when it disconnects a client. This fixes
the throttlefilter test if it's run with ASAN or valgrind.
2020-07-15 15:35:12 +03:00
Markus Mäkelä
5cf22037db
Merge branch '2.3' into 2.4 2020-07-15 14:20:17 +03:00
Markus Mäkelä
c4e79f4d3b
Prevent unwanted connection errors
The Connection class used the wrapper function when it could simply call
mysql_real_connect directly. This removes the unconditional error message
that would be printed even when a connection failure was expected.
2020-07-15 13:30:41 +03:00
Markus Mäkelä
c90db9d6c1
Update 2.4.11 release date 2020-07-15 08:50:06 +03:00
Markus Mäkelä
ea35b62373
MXS-619: Delay destruction of the client DCB
By delaying the processing of a client DCB in the zombie queue, we avoid
initiating the shutdown process of the backend DCBs too early. This solves
the problem of the previous implementation where the session shutdown
proceeded too far before the delaying process started.
2020-07-14 10:47:38 +03:00
Markus Mäkelä
12dca480ee
Merge branch '2.3' into 2.4 2020-07-14 10:25:40 +03:00
Markus Mäkelä
45589c533c
Merge branch '2.3' into 2.4 2020-07-14 10:06:57 +03:00
Markus Mäkelä
fcb78108be
Make mxs548_short_session_change_user lighter
Removed the inserts from the test. They don't make any functional
difference and it only slows the whole system down.

Also reduced the number of threads doing the change user command. This
should reduce the CPU usage of the test.
2020-07-14 09:36:37 +03:00
Markus Mäkelä
268b684c01
Fix mxs2167_extra_port
The test only used legacy startup syntax.
2020-07-14 09:36:37 +03:00
Esa Korhonen
9572330857 MXS-2900 Rename maxtest headers to .hh 2020-07-13 18:44:45 +03:00
Markus Mäkelä
cb0217a776
Merge branch '2.4.11' into 2.4 2020-07-13 15:20:33 +03:00
Markus Mäkelä
6abdb60b58
MXS-619: Temporarily disable the fix
The fix isn't fully functional as closed DCBs never process the events
they receive. The mechanism would work if certain events would be
processed but they'll have to be fixed in a later release.
2020-07-13 15:02:47 +03:00
Markus Mäkelä
38838e1f69
Merge branch '2.4.11' into 2.4 2020-07-13 10:42:11 +03:00
Markus Mäkelä
d622521ad1
2.4.10 Update release date 2020-07-13 10:26:21 +03:00
Johan Wikman
292a9efe88 Remove obsolete script 2020-07-10 09:59:17 +03:00
Johan Wikman
eb41562887 Merge branch '2.3' into 2.4 2020-07-10 09:57:47 +03:00
Johan Wikman
64480c8268 Remove obsolete script
set-change-date is much better.
2020-07-10 09:51:46 +03:00
Johan Wikman
2b20b1ba6a Add script for setting MaxScale change date
Simply calls script/set-change-date providing as argument all
MaxScale directories containing files with Change Date.
2020-07-10 09:51:46 +03:00
Markus Mäkelä
6f7cc921cc
Merge branch '2.3' into 2.4 2020-07-10 09:36:30 +03:00
Markus Mäkelä
c85638052e
Rerun failed tests
This should help stabilize the test set by making sure the test actually
fails twice. This'll still leave the output in the log so that the
problems that only occur on the first run can be eventually fixed.
2020-07-10 09:32:13 +03:00
Markus Mäkelä
0bd41c0f02
Merge branch '2.3' into 2.4 2020-07-09 13:54:31 +03:00
Markus Mäkelä
af227cd8c5
Enable log_info for maxinfo_sql
This should help figure out why the test would hang.
2020-07-09 13:49:43 +03:00
Markus Mäkelä
6229d79681
Make the fwf on_queries test more robust
By waiting for a known period of time before and during the time window,
we get a higher chance of the test passing even if the system isn't fast.
2020-07-09 13:49:43 +03:00
Markus Mäkelä
f61c7728ab
Fix bug626 with MariaDB 10.4
The test used legacy SQL syntax for updating the password.
2020-07-09 13:49:43 +03:00
Johan Wikman
09ebffbb9e 2.3 Add script for setting change date
This script is capable of setting the change date and not just
updating a specific one.

It looks for " Change Date: .*" in the first 20 lines of file and
replaces whatever follows "Change Date: " with the specified change
date.

If provided with a directory, it will walk the directory hierarchy
and recursively set the change date in all files.
2020-07-09 10:15:45 +03:00
Johan Wikman
6766114820 Merge branch '2.3' into 2.4 2020-07-08 09:38:32 +03:00
Johan Wikman
93e2aaeaf5 MXS-3031 Ensure backend ssl tests clean up after themselves
Presumably Mariadb_nodes::disable_ssl() should do that, but it
does not. So for the time being we create the default user anew.
2020-07-08 09:32:07 +03:00
Johan Wikman
9955f00bf5 MXS-3031 Add function for resetting users
With this function, a test that changes the default test users
on a node can reset the situation.
2020-07-08 09:31:42 +03:00
Johan Wikman
44c04a5d44 2.4 Update maintenance release number 2020-07-07 10:06:36 +03:00
Johan Wikman
fc9c9fcd77 2.4.11 Update change date 2020-07-07 10:01:38 +03:00
Johan Wikman
4c1b42b9cd 2.4.11 Add release notes and update change log 2020-07-07 09:40:51 +03:00
Markus Mäkelä
32fa7b6800
MXS-3069: Fix plugin name comparison
Connectors that wouldn't send the plugin name even when the plugin
authentication capability was enabled would have to do an extra step in
the authentication.
2020-07-07 09:23:23 +03:00
Markus Mäkelä
6c9249131f
MXS-3064: Use latin1 charset
This prevents the server from selecting the charset under which the
queries are processed which can result in conflicts if the tables used are
not compatible with the charset of the string literals used in the query.
2020-07-07 09:23:22 +03:00
Markus Mäkelä
4fe71b41ed
MXS-3038: Don't connect to lagging slaves
There's no use connecting to a lagging slave if a replication lag limit
has been set.
2020-07-07 09:23:22 +03:00
Markus Mäkelä
9e91cfdded
MXS-3039: Document qlafilter log rotation
The interaction with the log rotation in MaxScale was not documented.
2020-07-07 09:23:22 +03:00
Markus Mäkelä
7520efd218
MXS-3059: Don't use STL containers concurrently
The diagnostics_json call could access the std::unordered_map at the same
time it was being updated by the monitoring thread. This leads to
undefined behavior which in the case of MXS-3059 manifested as a segfault.
2020-07-07 09:23:22 +03:00
Markus Mäkelä
ad4bd26ff0
MXS-2585: Check for failed allocations
Since nothrow was used, the return value should be checked. By moving the
null-check after the node allocation part, we'll detect it.
2020-07-07 09:23:22 +03:00