Commit Graph

14898 Commits

Author SHA1 Message Date
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
e9a6871fae Fix processing of force_*_version in mdbci/set_run_test_variables.sh 2020-12-28 13:52:51 +02:00
9388f9bfca fix conflicts 2020-12-28 13:16:47 +02:00
c03e557a31 add force_version parameters to the MDBCI template 2020-12-25 13:42:16 +02:00
6ed1173cd6 add force_version parameters to the MDBCI template 2020-12-25 13:31:10 +02:00
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
22698ed6fb fix maxscale_product env variable 2020-12-23 02:33:19 +02:00
be7b04f963 Find MDBCI executable file 2020-12-23 00:02:32 +02:00
601eadac8b Fix default.json template 2020-12-21 13:41:09 +02:00
5ef953fb4a add comment 2020-12-21 11:50:45 +02:00
02deb5bb52 Merge branch '2.3' into 2.4 2020-12-18 11:48:38 +02:00
36b97ea198 MXS-3324 Test switchover with autocommit off 2020-12-17 13:37:30 +02:00
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
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
7771f67a5f Merge branch '2.3' into 2.4 2020-12-16 15:17:02 +02:00
85ea8174c4 Add a link to upgrading document to release notes 2020-12-16 15:16:28 +02:00
f496ab07eb Merge branch '2.3' into 2.4 2020-12-16 10:06:38 +02:00
2b8d5076e2 MXS-3318 Fix problem
When the tokenizer encounters a keyword, it sniffs whether the
last non-whitespace character before it happens to be a '.' and
if it is, the keyword is assumed to be the second part of a
qualified name.

Thus, before this commit

    -- blah.
    UPDATE ...

would not be parsed as KEYWORD (UPDATE) followed by stuff, but as
an ID (blah.UPDATE) followed by stuff.

With this change, newlines are no longer counted as whitespace.
2020-12-15 17:02:34 +02:00
9481abb42d MXS-3318 Translate newlines in stmts given to compare
A \n encounted in a string given to the query classifier test
program compare, is not converted into a newline. Makes it easier
to debug problems related to newlines.
2020-12-15 17:02:34 +02:00
4dd057d99d MXS-3158 Add test case
Test that monitor does not alter event charset or collation.
2020-12-14 14:06:43 +02:00
0c904eae5e MXS-3158 Preserve character set and collation when altering events
During switchover/failover, server events are altered. The ALTER
EVENT command automatically modifies the event charset and collation
to the values of the connetion running the query. This may cause
the event to become invalid.

Fixed this by changing connection charset and collation to the ones
in the event description just before altering it.
2020-12-14 14:06:43 +02:00
ce85a7292f Merge branch '2.3' into 2.4 2020-12-14 12:08:52 +02:00
d869dd358e MXS-3337: Select lowercase variable names
The current code assumes that the variable names are in lowercase. This
fixes the galera monitoring that was broken by commit
43068d20b43a34d5f3b4b4db0fcce701b3cd7cad. In addition, lowercase names
also helps when comparisons are done with std::string.
2020-12-11 18:37:05 +02:00