14985 Commits

Author SHA1 Message Date
Markus Mäkelä
a0affe1bb7
MXS-2784: Use SQL to fetch default character set
The Connector-C was changed to always return only the client's charset,
not the actual charset that the connection ends up using. To cope with
this, the code has to use SQL to join the default character set name to
the default collation for it which can be used to extract the numeric ID
of the charset.
2020-01-24 10:51:15 +02:00
Markus Mäkelä
17916969b6
Merge branch '2.3' into 2.4 2020-01-24 09:48:05 +02:00
Johan Wikman
51deebc44f Update 2.4 maintenance version 2020-01-24 09:06:29 +02:00
Johan Wikman
f2da2babbf Update 2.4.6 release date 2020-01-24 08:30:57 +02:00
Markus Mäkelä
4641dc208f
Fix sescmd debug assert
The assertion will not hold for COM_CHANGE_USER. This prevents the debug
assertion but the actual backend code should also be changed.
2020-01-23 18:38:05 +02:00
Markus Mäkelä
6dd4a04c5d
cherry-pick: MXS-2803: Write all buffered data
Since the queued queries will never be inspected after the COM_CHANGE_USER
completes, they should all be written instead of only the first packet.
2020-01-23 18:38:05 +02:00
Markus Mäkelä
c04d6748d3
Fix debug assertion on inconsistent sescmd result
The slave backend would be closed twice if it would both respond with a
different result and be closed due to a hangup before the master
responded.

Added a test case that reproduced the problem.
2020-01-23 18:38:05 +02:00
Markus Mäkelä
4f1ae70765
Allow multiple fatal signals
As long as the same thread never handles more than one fatal signal,
multiple fatal signals can be processed. This should guarantee that the
stacktrace is printed into the log while guaranteeing that recursion never
takes place if the handling of a fatal signal causes a fatal signal to be
emitted.
2020-01-23 18:37:57 +02:00
Timofey Turenko
b99c2b24b5 Merge remote-tracking branch 'origin/2.4' into 2.4.6 2020-01-23 14:50:03 +02:00
Timofey Turenko
b46974f3e7 Fix Galera lib seach in mariadb_nodes.cpp 2020-01-23 14:49:18 +02:00
Timofey Turenko
97c1578128 Fix Galera lib seach in mariadb_nodes.cpp 2020-01-23 14:45:24 +02:00
Johan Wikman
714dece7dd Update 2.4.6 Change Date
We use same as for 2.3.16.
2020-01-21 13:22:25 +02:00
Johan Wikman
0b2c0f8432 Add 2.4.6 release notes and update change log 2020-01-21 09:39:07 +02:00
Markus Mäkelä
fe1043219e
Merge branch '2.3' into 2.4 2020-01-21 09:33:41 +02:00
Markus Mäkelä
e2976a6689
MXS-2843: Remove password hash from log_info output 2020-01-21 09:27:08 +02:00
Markus Mäkelä
2e50b9409a
Add missing test labels
Some tests were missing a few labels.
2020-01-21 09:18:32 +02:00
Markus Mäkelä
aa84c4dc7e
MXS-2821: Improve REST API errors
The error message now states what the real reason of the error was.
2020-01-21 09:18:32 +02:00
Markus Mäkelä
f039d1b42d
Fix mxs2512_trx_replay_rollback
The change in defaults caused the test to fail.
2020-01-17 14:28:49 +02:00
Markus Mäkelä
df3ae56952
Merge branch '2.3' into 2.4 2020-01-17 09:26:50 +02:00
Markus Mäkelä
b6dc67f1b9
Improve cdc_client stability
It was possible that the query thread got stuck and never saw the updated
insert_val. Making the variable atomic as well as sleeping in between
queries should prevent it.
2020-01-17 09:21:21 +02:00
Markus Mäkelä
b573fcf030
MXS-2839: Make ssl_ca_cert optional
Not defining ssl_ca_cert causes the system default verification chain to
be used.
2020-01-17 09:21:06 +02:00
Johan Wikman
9bd692c7d3 Merge branch '2.3' into 2.4 2020-01-17 08:26:15 +02:00
Johan Wikman
46165f0894 Merge branch '2.3.16' into 2.3 2020-01-17 08:25:44 +02:00
Johan Wikman
9087f00c12 Update 2.3.16 release date 2020-01-17 08:15:05 +02:00
Markus Mäkelä
e3e92e7d90
Document hintfilter limitations
The filter does not support prepared statements.
2020-01-16 14:02:05 +02:00
Markus Mäkelä
7b71716da7
Improve bug448 stability
By removing replication from the equation, the client IP check is more
stable. The get_client_ip function is only used by bug448 and could be
moved there.
2020-01-16 12:10:31 +02:00
Markus Mäkelä
3dda14a58e
Reduce load of bug601 test
The test repeatedly creates connections which exhausts all the available
TCP connections. The test doesn't appear to test any specific
functionality with the repeated reconnections which means removing it
shouldn't be a problem.
2020-01-16 12:10:31 +02:00
Markus Mäkelä
60416f5b96
Fix max_connection for 2.4
The merge from 2.3 caused the mechanism to break in 2.4 where the old code
was correct.
2020-01-16 12:10:31 +02:00
Johan Wikman
a7e0142224 Merge branch '2.3' into 2.4 2020-01-15 11:29:37 +02:00
Johan Wikman
c7bedbe622 Add missing script
Copied from 2.4
2020-01-15 11:22:00 +02:00
Johan Wikman
b61ebfe82e Merge branch '2.3.16' into 2.3 2020-01-15 11:20:28 +02:00
Johan Wikman
6680a7dcdd Update 2.3 maintenance version 2020-01-15 11:15:54 +02:00
Johan Wikman
790d90f229 Update 2.3.16 Change Date 2020-01-15 11:08:51 +02:00
Esa Korhonen
d03d9ae464 Merge branch '2.3' into 2.4 2020-01-15 11:00:59 +02:00
Johan Wikman
1168ca5045 Add 2.3.16 release notes and update change log 2020-01-15 10:51:34 +02:00
Esa Korhonen
8b29760285 MXS-2812 Document "Auth Error" state
It was left out of the main configuration guide.
2020-01-15 10:40:11 +02:00
Johan Wikman
bb2f0a98cb Remove Cache filter storage_rocksdb documentation
The code is no longer present in MaxScale.
2020-01-15 10:38:41 +02:00
Markus Mäkelä
3ed30327e5
Merge branch '2.3' into 2.4 2020-01-14 10:10:58 +02:00
Markus Mäkelä
a65220165a
Fix use of gw_get_shared_session_auth_info
If the client DCB of the session was passed into the function, it was
possible that the session pointer for it was already set to null. The
session pointer of an open DCB is never null but a client DCB's session
pointer can be null if accessed via the MXS_SESSION object.
2020-01-13 19:28:45 +02:00
Markus Mäkelä
aeab1bdc7d
Cherry-pick: Fall back to pkill in run_ctrl_c.sh
The pkill executable is provided by the same package that provides ps
which is why it is more likely to be installed. Seems that the test VMs
don't always have killall installed.

Run the MaxScale process with the maxscale user instead of the root user
to prevent any new files from being owned by a different user.

Cherry-picked the commit a06c122a5e050071589f724758d6bbd3d8d3f419 from
develop.
2020-01-13 17:12:05 +02:00
Markus Mäkelä
1d8139587b
MXS-2710: Move client_count handling into client DCB
Due to the fact that both client connections and listeners use sessions in
2.3, the client_count tracking must be done inside the client DCB. In
addition to this, the max_connections check didn't take the current
pending connection into account which caused an off-by-one error.

This commit fixes the connection_limit test failure that was introduced by
commit 6306519e5e75575ba083ee2f0edfe7e624da5d26.
2020-01-13 17:12:04 +02:00
Markus Mäkelä
6c14ac7829
MXS-2834: Make retrying of trx deadlocks configurable
The behavior is not desirable in all cases and should be enabled only if
needed.
2020-01-11 11:53:01 +02:00
Markus Mäkelä
4918914042
MXS-2810: Stop MaxScale on uninstall 2020-01-10 09:47:19 +02:00
Markus Mäkelä
c18cbb7a6d
MXS-2758: Enable MaxScale after installation 2020-01-10 09:45:19 +02:00
Markus Mäkelä
09c55111cc
Merge branch '2.3' into 2.4 2020-01-09 06:59:00 +02:00
Markus Mäkelä
6e8318f72f
MXS-2829: Remove config file when deleting a filter 2020-01-08 15:30:15 +02:00
Markus Mäkelä
b555115fa2
Merge branch '2.3' into 2.4 2020-01-07 11:12:02 +02:00
Markus Mäkelä
36b0196c3e
MXS-2825: Fix basic user privileges
All POST, PUT, DELETE and PATCH commands should be prevented regardless of
whether they define a request body.
2020-01-07 10:40:41 +02:00
Markus Mäkelä
edb49d6f35
MXS-2824: Document basic user privileges
The documentation was not clear on what the difference between admin and
basic accounts is.
2020-01-07 10:40:41 +02:00
Markus Mäkelä
6306519e5e
MXS-2710: Move client_count handling inside Session
By incrementing the counters when the session is created, we know that the
counter will always be decremented correctly. This does cause the listener
session to be counted as an actual session but this is already present in
the statistics calculations and is something we have to live with in 2.3
This change also makes it possible to overshoot the connection count
limitation as the session creation is delayed until authentication
fails. Both of these problems are fixed in 2.4.
2020-01-07 10:40:40 +02:00