13106 Commits

Author SHA1 Message Date
Markus Mäkelä
e7b8aca605
Stop MaxScale after tests
This allows crashes on exit to be detected.
2020-03-16 15:08:52 +02:00
Johan Wikman
f0fd480237 Merge branch '2.3.18' into 2.3 2020-03-12 10:27:26 +02:00
Johan Wikman
7efdb5dd28 Update 2.3.18 release date 2020-03-12 10:20:54 +02:00
Johan Wikman
04533e6293 2.3.18 Create release notes and update change log 2020-03-12 10:20:54 +02:00
Timofey Turenko
09c8e7b29b create symlink also from sles to opensuse repos 2020-03-11 20:23:12 +02:00
Timofey Turenko
8b2c46991b Set cpu cores number to build VM and separate build and upgrade
VM should have 8 cores to make build faster in GCloud.
To get rid of ssfs between build hosts the build step
and upgrade test step are separated as well as
repository discriåtion generation
2020-03-11 19:00:27 +02:00
Timofey Turenko
a97973665a Merge branch '2.3' of github.com:mariadb-corporation/MaxScale into 2.3 2020-03-11 18:57:54 +02:00
Timofey Turenko
33ccc4687c Set cpu cores number to build VM and separate build and upgrade
VM should have 8 cores to make build faster in GCloud.
To get rid of ssfs between build hosts the build step
and upgrade test step are separated as well as
repository discriåtion generation
2020-03-11 18:50:53 +02:00
Johan Wikman
df18c1b2e8 Update maintenance version for 2.3 2020-03-10 15:09:29 +02:00
Markus Mäkelä
38420c38b9
Upgrade to nodejs 6.17.1 2020-03-10 14:25:05 +02:00
Johan Wikman
e0cd6adb26 Update change date for 2.3.18 2020-03-10 10:45:47 +02:00
Johan Wikman
8dd9a4ca27 MXS-2917 Add missing destructors to sqlite rules
Lemon (the sqlite parser generator) destructors are needed for
all rules that return dynamically allocated structures. Otherwise
there may be leaks if a statement is not completely parsed.
2020-03-09 15:24:20 +02:00
Esa Korhonen
4a2d3dc55b MXS-2914 Link to pcre2 syntax page instead of API page
More appropriate link.
2020-03-04 16:38:18 +02:00
Markus Mäkelä
2f6d003491
MXS-2832: Document failover timing estimates
The worst-case time it takes for failover to start is now documented.
2020-03-04 08:49:03 +02:00
Markus Mäkelä
e2e220de66
MXS-2726: Document ccrfilter default behavior
Added an explicit mention of the way the filter works.
2020-03-02 17:30:11 +02:00
Markus Mäkelä
b7d0be97ab
MXS-2211: Auto-generate TOC
The link no longer works as the section has been removed. Auto-generating
the TOC solves this.
2020-03-02 17:30:10 +02:00
Markus Mäkelä
207882defb
MXS-2277: Document script limitations
The script should not interact with the administrative interfaces of
MaxScale.
2020-03-02 17:30:10 +02:00
Markus Mäkelä
67fee60f80
Fix Auth Error server status
The mon_ping_or_connect_to_db resets the MYSQL handle which caused the
loss of the error message. Returning a new enumeration value for
authentication errors solves this problem.
2020-03-02 16:32:35 +02:00
Esa Korhonen
96ba2da40c MXS-2900 Move testcore library files to a dedicated directory
The library is now named "maxtest". The related include-files are, for
now, usable without designating the full include path. This may be changed
later, but would require modifying every test.
2020-03-02 11:17:30 +02:00
Markus Mäkelä
e180c20055
MXS-2899: Update charset only when successful
By updating the server charset only when we successfully query it, the
charset will not change due to network connectivity problems.
2020-02-27 14:18:51 +02:00
Markus Mäkelä
0614a44a4d
Add monitor TLS test case
Added a test that verifies the server state is Down when the backend
doesn't support TLS.
2020-02-24 12:02:50 +02:00
Markus Mäkelä
b241f7ed2a
MXS-2896: Fix monitor connection creation
The connection is now correctly null after a failed attempt to connect.
2020-02-24 12:02:50 +02:00
Markus Mäkelä
13658fe23e
MXS-2810: Fix CentOS 6 regression
MaxScale wasn't stopped if the system didn't use systemd.
2020-02-24 12:02:50 +02:00
Markus Mäkelä
61050ed125
Fix Avro C API link
The old link is dead.
2020-02-19 19:24:39 +02:00
Johan Wikman
919686f7ad Merge branch '2.3.17' into 2.3 2020-02-12 08:22:59 +02:00
Johan Wikman
81e2306811 Update 2.3.17 release date 2020-02-12 08:20:15 +02:00
Johan Wikman
853a83a794 Update 2.3 maintenance version 2020-02-12 08:17:55 +02:00
Markus Mäkelä
fd875cbf6d
Remove faulty debug assertion
The use of the server state is not transactional across multiple uses of
the function. This means that any assertions on the target state can fail
if the monitor updates the state between target selection and the
assertion.
2020-02-11 22:34:39 +02:00
Markus Mäkelä
c18f9c6bd7
MXS-2883: Handle AuthSwitchRequest packets
The backend didn't expect AuthSwitchRequest packets in response to the
handshake response packets. This is allowed by the protocol and appears to
happen with at least MySQL 8.0.
2020-02-10 15:35:47 +02:00
Johan Wikman
b5dc260d1b Add 2.3.17 release notes and update change log 2020-02-10 15:34:26 +02:00
Johan Wikman
cfb3f79b54 Update 2.3.17 Change Date 2020-02-10 15:28:38 +02:00
Esa Korhonen
ef769573e4 MXS-2880 Fix typo in json output
"seconds_behing_master" -> "seconds_behind_master"
2020-02-10 12:59:30 +02:00
Markus Mäkelä
39cf6a8000
MXS-2860: Update last_read only on successful reads
This prevents empty or failed reads from updating the last_read flag which
in turn gives us the correct connection idle time when network errors
occur.
2020-02-10 10:46:32 +02:00
Markus Mäkelä
98e6bdcd90
MXS-2878: Enforce TLS for Connector-C connections
Connector-C connections now require TLS if the servers are configured with
it.
2020-02-10 10:46:32 +02:00
Markus Mäkelä
21989f7a16
MXS-2777: Fix installation directory
The drop-in directory must be created in /etc.
2020-02-10 10:46:31 +02:00
Markus Mäkelä
c0e20137ee
MXS-2871: Fix postrm script
The script used the wrong command to stop the service. Added the missing
disable that mirrors the enable in the postinst script.
2020-02-10 10:46:31 +02:00
Markus Mäkelä
f6d848d58c
MXS-2859: Treat newlines in strings as errors
Allowing raw newlines in string values breaks configuration serialization.
2020-01-30 10:44:00 +02:00
Markus Mäkelä
f53faba795
MXS-2857: Disable peer verification by default
The fix to the bug where peer certificates were validated but not required
caused the default behavior to change. The default should've changed at
the same time the fix was made.
2020-01-29 14:35:03 +02:00
Markus Mäkelä
a3fd5a0218
MXS-2854: Repeat read on schema event
The read needs to be repeated if MaxScale sends a schema event.
2020-01-29 14:35:03 +02:00
Johan Wikman
ea2665214f MXS-2851 Fix bug 2020-01-28 12:10:24 +02:00
Johan Wikman
9262e14aed MXS-2851 Add test that reveals bug 2020-01-28 11:21:37 +02:00
Johan Wikman
399f312911 MXS-2850 Fix bug 2020-01-28 11:08:27 +02:00
Johan Wikman
36dee78cee MXS-2850 Add test that reveals bug 2020-01-28 11:02:19 +02:00
Markus Mäkelä
41a07a4bd9
MXS-2801: Log INFO messages when session_trace is on
Since the session trace should contain all messages, the log priority
check should always return true when session_trace is on.
2020-01-27 15:39:39 +02:00
Timofey Turenko
ed6cc78ab3 Merge branch '2.3' of github.com:mariadb-corporation/MaxScale into 2.3 2020-01-24 13:50:09 +02:00
Timofey Turenko
08616692a4 Fixed tests to be compatible with GCloud VMs
GCloud machines has more strict access rights settings. Derect calls of
'chmod' are needed to make all configuration files (e.g. 'fwf/rules') be
accessable by Maxscale.
2020-01-24 13:47:26 +02:00
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ä
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