Commit Graph

14920 Commits

Author SHA1 Message Date
f782a538cc MXS-3410 Add Mariadb_nodes::prepare_for_test(MYSQL*)
Needs to be a member function as the dropping of anonymous
users must be done differently for Xpand. With current code,
no anonymous users in Xpand will be dropped, and there will
always be an error (so, should someone care about the return
code, this would not work).
2021-02-19 12:50:43 +02:00
c0abec4e5b MXS-3410 Rename Mariadb_nodes::flush_hosts() to prepare_for_test()
The function does more than simply executes "FLUSH HOSTS". Also
change return type to bool as that is what it has returned.
2021-02-19 12:38:10 +02:00
3fefe557c0 MXS-3410 Make xpand system test setup more resilient
Xpand nodes must be added one by one to the cluster as an attempt
to add more nodes will fail, if any of the nodes to be added
already are in the cluster.

Further, the adding of a node may also fail if, when the addition
is made, the addition of the previous node is still in process.
Now it will be attempted at most 5 times, while sleaping as many
seconds between each attempt as there has been attempts.

Some additional logging was also added.
2021-02-18 15:12:20 +02:00
66bb716ff0 MXS-3408 Fix leak in qc_mysqlembedded properly
The actual cause was a missing cleanup call.
2021-02-17 17:00:08 +02:00
8df55ca913 Merge branch '2.4.16' into 2.4 2021-02-17 13:49:29 +02:00
cf07399518 2.4.16 Update release date 2021-02-17 13:20:44 +02:00
3e7b8fcdc6 Fix get_canonical bug in treating decimal numbers
"select 1.", became "select 1.", should be "select ?"
2021-02-17 11:53:36 +02:00
4724a0c79a MXS-3408 "Fix" leak in qc_mysqlembedded 2021-02-17 08:40:41 +02:00
7e3f6ff372 2.4 Update maintenance release 2021-02-16 15:34:06 +02:00
31eaf34091 2.4.16 Create release notes and update change log 2021-02-16 15:05:49 +02:00
0224f24077 2.4.16 Update Change Date 2021-02-16 14:59:00 +02:00
eca0d0d5f0 MXS-3408 Fix crash in qc_mysqlembedded
Calling send_eof() crashes nowadays and was anyway a workaround
for dynamic_cast, in the distant past when dynamic_cast did not
work.
2021-02-16 14:34:22 +02:00
b21c7f4a99 MXS-3408 Fix leak in qc_sqlite
Without this fix, there will be a leak every time a SELECT statement
uses ... PRECEDING or ... FOLLOWING (except for the case when ... is
UNBOUNDED).
2021-02-16 13:23:44 +02:00
0dd5ed23d3 MXS-3404 Fix problem by extending parser 2021-02-16 08:35:22 +02:00
797d7812cc MXS-3404 Extend sqlite3 op-size from u8 to u16
To make it possible to have more tokens than 255.

Parsers operators (i.e. tokens) is one thing and opcodes
for the virtual machine of sqlite3 is another. Unfortunately
they are not completely separate, but some of the opcodes
in <build-directory>/opcodes.h are the same as the tokens in
<build-directory>/parse.h. And while the parser tokens are now
16-bit, the VM opcodes are 8-bit. However, this is probably not
a problem even if some of the parser tokens that are duplicated
in the opcodes are > 256 as we only use sqlite3 for parsing and
not for executing anything (on the sqlite3 VM).
2021-02-15 20:06:00 +02:00
5f42ee88c9 MXS-3404 Add test that reveals problem 2021-02-15 10:08:32 +02:00
3e7c937dbf MXS-3404 Plug one leak in test program
So keep Asan happy.
2021-02-12 18:51:15 +02:00
bc52c918fd MXS-3404 Accept hexadecimal literals 2021-02-12 18:50:33 +02:00
3620db9b0a Ignore the default value of connector_plugindir
The default value isn't a valid path and should be changed later on.
2021-02-11 16:43:00 +02:00
e48c5d11fc MXS-3345: Create persistdir earlier
The directory was created when the configuration was being processed and
it wasn't checked unless it was configured to a non-default value. With
the addition of the path validation, the directory must be created
earlier.
2021-02-10 15:05:40 +02:00
2657cc100e MXS-3330: Book only expected responses
Responses generated by replayed session commands must not be treated as
actual responses to retained statements. In 2.5 this is not a problem as
it is done implicitly with the pre-assignment of the server that delivers
the session command response.
2021-02-10 09:42:12 +02:00
47bcb6ad02 MXS-3345: Defer path permission checks
Doing the directory permission checks after all the values have been set
helps avoid problems with intermediate values that aren't valid. This
happens when --basedir generates invalid derived paths and the correct path
is provided as an argument right after it.

The path parameter is read from the configuration file only if it hasn't
been modified by a command line option. The case where an invalid command
line option is given but a valid configuration parameter would override it
is still treated as an error.

Also added a clarifying comment into set_dirs to make sure the handling
for the two path parameters is not moved inside set_runtime_dirs.

Fixed the testing scripts for the REST API and MaxCtrl now that the
directory permission checks are done correctly. Previously some paths seem
to have been ignored.
2021-02-09 17:36:41 +02:00
16a15e02be Merge branch '2.3' into 2.4 2021-02-08 10:05:23 +02:00
bf7d53dd23 MXS-3399 Fix heap-buffer overflow
The original code for catenating an SrcList to another assumed
that the list to be catenated had only 1 element. Now works
regardless of the number of items.
2021-02-08 09:49:16 +02:00
2d0780bdfa Fix open_close_connections
Missing comma in the test assertion.
2021-01-22 14:03:07 +02:00
287e04749e Fix monitor documentation
The event description header was too high of a heading.
2021-01-22 10:12:59 +02:00
219b4422cd Add more output to binlog_change_master
Knowing the GTIDs before the MASTER_GTID_WAIT call should help us figure
out why it doesn't seem to be working as expected.
2021-01-22 10:12:59 +02:00
a617347fb6 Fix open_close_connections
The assumption that errno would be the same for the duration of the whole
call chain is wrong as it's possible that other calls that modify it are
made. Using the actual error string itself is much more reliable.
2021-01-22 10:12:59 +02:00
9fceffbf9e Backport mxs1071_maxrows fix
This is a backport of commit `4167399cefa4f1621e1fa5ee7fe54c12736a6d21`.
2021-01-22 10:12:59 +02:00
88e4b5724b Backport mxs1804_long_ps_hang fix
This is a backport of commit `cec91ccb298dabce0857ec566a8671e34b58259b`.
2021-01-22 10:12:58 +02:00
63d6a33177 Merge branch '2.4.15' into 2.4 2021-01-21 10:04:51 +02:00
9d14a8bbef 2.4 Update maintenance version 2021-01-21 10:01:38 +02:00
ab9ef08965 2.4.15 Update release date 2021-01-21 10:00:56 +02:00
8ec0deb0fc Fix mysql_enforce_simple test 2021-01-20 12:16:27 +02:00
d22e8fbf27 Use loopback address as default for --hosts
Cherry picking 0293633b0f2815ba7be55c63d6ba6ac6a22a1db7
from 2.5 caused numerous formatting related conflicts.
So did the change manually.
2021-01-19 15:42:35 +02:00
17b19421a9 2.4.15 Update release notes 2021-01-19 15:33:00 +02:00
fac3ff4366 MXS-3346: Fix tarball plugin directory
The plugin directory wasn't installed and using --basedir with a path to
the extracted tarball wouldn't be enough.
2021-01-19 14:32:12 +02:00
4ce0f26167 Declare TARBALL as an option
The variable was implicitly used which made it hard to detect.
2021-01-19 14:32:12 +02:00
dd340f9ec8 MXS-3346: Fix --basedir write permission checks
The connector plugindir required write access when it doesn't need it.
2021-01-19 14:32:11 +02:00
027c220c6e Add missing colors dependency
MaxCtrl seems to have relied on an implicit dependency which, for whatever
reason, broke only recently. Since we require() it, we should declare it
as a dependency.
2021-01-19 10:06:27 +02:00
da0543edc2 Update MaxCtrl dependencies
Ran `npm audit fix` which fixed a lodash vulnerability.
2021-01-19 10:06:26 +02:00
c5bcf7a8b1 2.4.15 Update change date 2021-01-18 15:30:30 +02:00
17e147dae3 2.4.15 Add release notes and update change log 2021-01-18 15:15:49 +02:00
26d2c2387f Fix monitor connection error messages
The connection is closed by the ping_or_connect_to_db function which
causes the information about why the connection failed to be lost.
2021-01-18 12:02:40 +02:00
780c08c90f Merge branch '2.3' into 2.4 2021-01-14 14:29:17 +02:00
182de7c7b8 Remove maxscale-system-test link
Hopefully any scripts and code using the link have been updated.
2021-01-08 17:37:14 +02:00
79e7636b66 MXS-3360: Use correct field 2021-01-07 15:24:30 +02:00
9500665e89 Merge branch '2.3' into 2.4 2020-12-28 16:01:17 +02:00
be997b56c6 Fix system-test MDBCI template 2020-12-28 16:00:42 +02:00
36a655a819 Merge branch '2.3' into 2.4 2020-12-28 13:53:15 +02:00