14906 Commits

Author SHA1 Message Date
Johan Wikman
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
Johan Wikman
5f42ee88c9 MXS-3404 Add test that reveals problem 2021-02-15 10:08:32 +02:00
Johan Wikman
3e7c937dbf MXS-3404 Plug one leak in test program
So keep Asan happy.
2021-02-12 18:51:15 +02:00
Johan Wikman
bc52c918fd MXS-3404 Accept hexadecimal literals 2021-02-12 18:50:33 +02:00
Markus Mäkelä
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
Markus Mäkelä
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
Markus Mäkelä
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
Markus Mäkelä
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
Johan Wikman
16a15e02be Merge branch '2.3' into 2.4 2021-02-08 10:05:23 +02:00
Johan Wikman
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
Markus Mäkelä
2d0780bdfa
Fix open_close_connections
Missing comma in the test assertion.
2021-01-22 14:03:07 +02:00
Markus Mäkelä
287e04749e
Fix monitor documentation
The event description header was too high of a heading.
2021-01-22 10:12:59 +02:00
Markus Mäkelä
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
Markus Mäkelä
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
Markus Mäkelä
9fceffbf9e
Backport mxs1071_maxrows fix
This is a backport of commit `4167399cefa4f1621e1fa5ee7fe54c12736a6d21`.
2021-01-22 10:12:59 +02:00
Markus Mäkelä
88e4b5724b
Backport mxs1804_long_ps_hang fix
This is a backport of commit `cec91ccb298dabce0857ec566a8671e34b58259b`.
2021-01-22 10:12:58 +02:00
Johan Wikman
63d6a33177 Merge branch '2.4.15' into 2.4 2021-01-21 10:04:51 +02:00
Johan Wikman
9d14a8bbef 2.4 Update maintenance version 2021-01-21 10:01:38 +02:00
Johan Wikman
ab9ef08965 2.4.15 Update release date 2021-01-21 10:00:56 +02:00
Esa Korhonen
8ec0deb0fc Fix mysql_enforce_simple test 2021-01-20 12:16:27 +02:00
Johan Wikman
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
Johan Wikman
17b19421a9 2.4.15 Update release notes 2021-01-19 15:33:00 +02:00
Markus Mäkelä
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
Markus Mäkelä
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
Markus Mäkelä
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
Markus Mäkelä
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
Markus Mäkelä
da0543edc2
Update MaxCtrl dependencies
Ran `npm audit fix` which fixed a lodash vulnerability.
2021-01-19 10:06:26 +02:00
Johan Wikman
c5bcf7a8b1 2.4.15 Update change date 2021-01-18 15:30:30 +02:00
Johan Wikman
17e147dae3 2.4.15 Add release notes and update change log 2021-01-18 15:15:49 +02:00
Markus Mäkelä
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
Esa Korhonen
780c08c90f Merge branch '2.3' into 2.4 2021-01-14 14:29:17 +02:00
Esa Korhonen
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
Markus Mäkelä
79e7636b66
MXS-3360: Use correct field 2021-01-07 15:24:30 +02:00
Timofey Turenko
9500665e89 Merge branch '2.3' into 2.4 2020-12-28 16:01:17 +02:00
Timofey Turenko
be997b56c6 Fix system-test MDBCI template 2020-12-28 16:00:42 +02:00
Timofey Turenko
36a655a819 Merge branch '2.3' into 2.4 2020-12-28 13:53:15 +02:00
Timofey Turenko
e9a6871fae Fix processing of force_*_version in mdbci/set_run_test_variables.sh 2020-12-28 13:52:51 +02:00
Timofey Turenko
9388f9bfca fix conflicts 2020-12-28 13:16:47 +02:00
Timofey Turenko
c03e557a31 add force_version parameters to the MDBCI template 2020-12-25 13:42:16 +02:00
Timofey Turenko
6ed1173cd6 add force_version parameters to the MDBCI template 2020-12-25 13:31:10 +02:00
Timofey Turenko
7c68c396a2 system-test works with production version of Maxscale
Every change to MariaDB Enterprise should be tested with Maxscale.
Maxscale should be stable - installed from production repository.
New enviromental variable 'maxscale_product' is introduced.
It can be 'maxscale' or 'maxscale_ci' (default is 'maxscale_ci')
2020-12-23 04:06:35 +02:00
Timofey Turenko
22698ed6fb fix maxscale_product env variable 2020-12-23 02:33:19 +02:00
Timofey Turenko
be7b04f963 Find MDBCI executable file 2020-12-23 00:02:32 +02:00
Timofey Turenko
601eadac8b Fix default.json template 2020-12-21 13:41:09 +02:00
Timofey Turenko
5ef953fb4a add comment 2020-12-21 11:50:45 +02:00
Markus Mäkelä
02deb5bb52
Merge branch '2.3' into 2.4 2020-12-18 11:48:38 +02:00
Esa Korhonen
36b97ea198 MXS-3324 Test switchover with autocommit off 2020-12-17 13:37:30 +02:00
Esa Korhonen
7e6eb55618 MXS-3324 Enable autocommit when using Connector-C
May solve some monitor issues on servers with default autocommit
set to off.
2020-12-17 13:37:30 +02:00
Markus Mäkelä
22a112e137
Remove redundant ExecStartPost command
The LimitCORE command already sets the process core size limit so the
post-start command appears to be useless. In addition, it appears to fail
from time to time due to pidof failing to return the process ID of
MaxScale right as it starts. This in turn results in an unexplainable
failure to start with no messages logged anywhere with the exception of
the following from systemctl:

[vagrant@maxscale build]$ sudo systemctl status maxscale
● maxscale.service - MariaDB MaxScale Database Proxy
   Loaded: loaded (/usr/lib/systemd/system/maxscale.service; disabled; vendor preset: disabled)
   Active: failed (Result: exit-code) since Wed 2020-12-16 21:16:55 CET; 26s ago
  Process: 304024 ExecStartPost=/bin/sh -c prlimit -p $(pidof maxscale) --core=unlimited (code=exited, status=1/FAILURE)
  Process: 304003 ExecStart=/usr/bin/maxscale (code=exited, status=0/SUCCESS)
  Process: 304001 ExecStartPre=/usr/bin/install -d /var/lib/maxscale -o maxscale -g maxscale (code=exited, status=0/SUCCESS)
  Process: 303999 ExecStartPre=/usr/bin/install -d /var/run/maxscale -o maxscale -g maxscale (code=exited, status=0/SUCCESS)
 Main PID: 304004 (code=exited, status=0/SUCCESS)
2020-12-16 22:35:38 +02:00
Markus Mäkelä
7771f67a5f
Merge branch '2.3' into 2.4 2020-12-16 15:17:02 +02:00