14008 Commits

Author SHA1 Message Date
Johan Wikman
19487d2bfb Merge branch '2.3' into 2.4 2019-09-20 09:36:23 +03:00
Johan Wikman
aa7be1447d MXS-2688 Handle SET [ROLE|NAMES|PASSWORD|CHARACTER] explicitly
It's not correct to claim that they would modify a system variable,
so they are purely classified as QUERY_TYPE_SESSION_WRITE.
2019-09-20 09:27:38 +03:00
Johan Wikman
f587ec191d MXS-2688 Add QC operator QUERY_OP_SET
Allows RWS to unconditionally send all SET-statements to
all servers.
2019-09-20 09:27:38 +03:00
Markus Mäkelä
bd3107e7ca
Merge branch '2.3' into 2.4 2019-09-19 15:37:43 +03:00
Markus Mäkelä
f46f873dc1
Add verbose backend status helper
This allows the same verbose information to be logged in the cases where
it is of use. Mostly this information can be used to figure out why a
certain session was closed.
2019-09-19 13:41:49 +03:00
Markus Mäkelä
fd0c156655
MXS-2564: Reconnect only when necessary
By doing the reconnection only when a new query arrives, we prevent the
excessive reconnecting that is done when a server's actual and monitored
states are in conflict.
2019-09-19 13:41:49 +03:00
Markus Mäkelä
40d05e8278
Report more details when the master is unavailable
By dumping the connection state we'll know when the connection was opened
and closed and the reason why it was closed.
2019-09-19 12:55:31 +03:00
Markus Mäkelä
75e7c0da92
Merge branch '2.3' into 2.4 2019-09-19 10:56:52 +03:00
Markus Mäkelä
87b1dd2703
Fix stacktrace generation
The stacktraces weren't generated on systems where /bin/test didn't exist.
2019-09-19 10:56:18 +03:00
Johan Wikman
c695366012 Merge branch '2.3' into 2.4 2019-09-19 10:48:51 +03:00
Johan Wikman
749d20b659 Update 2.3.12 release date 2019-09-19 10:48:23 +03:00
Johan Wikman
e733403996 Add 2.3.12 release notes and update change log 2019-09-19 10:48:23 +03:00
Markus Mäkelä
8dccae63dd
Merge branch '2.3' into 2.4 2019-09-18 17:03:40 +03:00
Markus Mäkelä
f4a51e0b47
Fix split brain detection
Galeramon will now only use the larger cluster in case a split brain
situation occurs. If the clusters are of equal size, the one whose UUID
compares less will be used. This will guarantee that all MaxScales that
see the same picture will end up using the same cluster.
2019-09-18 16:43:12 +03:00
Johan Wikman
ae99e8622f Update 2.3 maintenance version 2019-09-18 15:05:41 +03:00
Markus Mäkelä
9c007ff401
Add missing workaround files to tgz installation
2.3 has new directories that must be present in the tarball.
2019-09-18 14:55:23 +03:00
Esa Korhonen
e03a2e3cf0 Add MariaDB-Monitor multimaster failover/switchover test 2019-09-18 12:19:09 +03:00
Esa Korhonen
78cc5b2445 Move packet_tracker.cc under maxscale
It depends on MaxScale-types. This also removes the maxsql-pcre2-dependency.
2019-09-18 12:19:09 +03:00
Timofey Turenko
54109a5a33 Add dependecy on 'gnutls' to the installation document 2019-09-18 12:13:26 +03:00
Johan Wikman
1f26189ddd Merge branch '2.3' into 2.4 2019-09-17 14:55:34 +03:00
Johan Wikman
dabab543cc MXS-2684 Add throttling callbacks to backend DCB from pool
Add throttling callbacks to a backend DCB taken from the persistent
pool. They were removed when the dcb was put into the pool.
2019-09-17 14:45:53 +03:00
Timofey Turenko
7741fddb4b Merge branch '2.4' of github.com:mariadb-corporation/MaxScale into 2.4 2019-09-16 15:00:27 +03:00
Timofey Turenko
ea95d9a523 Fix has_label() function name 2019-09-16 12:17:12 +03:00
Johan Wikman
5e2d9f599b Merge branch '2.3' into 2.4 2019-09-16 09:50:05 +03:00
Johan Wikman
60c33b149c MXS-2674 Prevent read of unitialized variable 2019-09-16 09:32:47 +03:00
Johan Wikman
01ab0c8736 MXS-2553 Allow parenthesis around SELECT
With this change, a parenthesized top-level SELECT, such as
"(SELECT f FROM t)" will be fully parsed. Before this change,
the statement was classified as invalid and would thus have
been sent to the master.

With this change also statements like

    (SELECT f FROM t1) UNION (SELECT f FROM t2)

will be correctly classified, although only partially parsed.
2019-09-13 15:45:16 +03:00
Johan Wikman
7531515259 MXS-2674 Fix query classification
With these changes

  SET @saved_cs_client= @@character_set_client;

will be classified as QUERY_TYPE_USERVAR_WRITE and

  SELECT 1 AS c1 FROM t1 ORDER BY ( SELECT 1 AS c2 FROM
    t1 GROUP BY GREATEST(LAST_INSERT_ID(), t1.a) ORDER BY
      GREATEST(LAST_INSERT_ID(), t1.a) LIMIT 1);

will be classified as QUERY_TYPE_READ|QUERY_TYPE_MASTER_READ
2019-09-13 15:43:57 +03:00
Johan Wikman
9969f21414 MXS-2674 Add test that reveals bug 2019-09-13 15:31:06 +03:00
Markus Mäkelä
31029eaec8
MXS-2675: Fix server creation with TLS via REST API
The TLS parameters were defined but the main parameter that enables it
wasn't automatically added. As the REST API documentation states that this
parameter does not need to be defined, the runtime configuration must add
it.
2019-09-13 14:14:34 +03:00
Timofey Turenko
bdfd7341e7 Add tests with backend SSL
A 'BACKEND_SSL' label added. If test has this label
Testconnection() configures backend servers to
require SSL
2019-09-13 14:12:49 +03:00
Markus Mäkelä
811a2b1df6
Fix dead link 2019-09-13 13:52:35 +03:00
Johan Wikman
c079d1312e MXS-2674 Recognize timediff as builtin function 2019-09-12 12:38:57 +03:00
Timofey Turenko
8b43adada7 MXS-2664: Remove all traces of Nagios plugin
Nagios plugin is not in Maxscale any more, but Nagios docs
and Nagios files processing in the 'postinst' script are
still present. Removing
2019-09-11 11:21:33 +03:00
Johan Wikman
9faed003e0 MXS-2669 Make '-l' work again
When a system test program is invoked with the flag '-l', it will
assume MaxScale is running on 127.0.0.1 using a configuration that
is compatible with the test.

NOTE: Currently any test that directly or indirectly sshes to the
      MaxScale node will fail. With a bit of setup that could also
      be made to work.
2019-09-10 15:34:56 +03:00
Esa Korhonen
ebbd806c6a Merge branch '2.3' into 2.4 2019-09-06 10:59:08 +03:00
Esa Korhonen
ff2048625b MXS-2652 Add test
Test case added to an existing test.
2019-09-06 10:12:16 +03:00
Esa Korhonen
00feb61b23 MXS-2652 Do not clear maintenance flag when a server goes down
The set of flags to clear should be well-defined.
2019-09-06 09:43:32 +03:00
Johan Wikman
29dd16b333 Merge branch '2.3' into 2.4 2019-09-05 16:28:25 +03:00
Johan Wikman
ea9a823a25 2.3: Add missing documentation link
Throttle filter was not linked from contents page.
2019-09-05 16:27:14 +03:00
Timofey Turenko
d82a90e27f Add read rights to /etc/my.cnf.d/* on test VMs
In some configs /etc/my.cnf.d/* files access rights are
very limited and server can not read configuration.
It leads to broken settings and unability to setup
replication during the test
2019-09-05 10:21:04 +03:00
Esa Korhonen
9cb95fb81d Merge branch '2.3' into 2.4
Empty commit.
2019-09-04 17:52:42 +03:00
Esa Korhonen
6edbd52324 MXS-2642 Do not re-test a pam-service for a given user
Because of how the user-data was read, the same service name could be
found multiple times if the user-search query matched multiple rows. Now
the service names are read to a set, which ignores duplicates. The same
service may be attempted again if the authentication fails and user-data
is fetched again.
2019-09-04 17:31:10 +03:00
Markus Mäkelä
2a93d86f1a
MXS-2655 Document session command limitation 2019-09-04 15:40:52 +03:00
Markus Mäkelä
46a3c9f61c
Log interrupting packet's type during trx replay
This will allow non-SQL commands to be detected.
2019-09-04 15:40:52 +03:00
Johan Wikman
916e9ea3b1 Merge branch '2.4.2' into 2.4 2019-08-30 11:59:16 +03:00
Johan Wikman
52e3b80d95 Update release date 2019-08-30 11:13:07 +03:00
Johan Wikman
4448476bca Update 2.4 version 2019-08-30 07:46:10 +03:00
Johan Wikman
aad4148d77 Add 2.4.2 release notes and update change log 2019-08-29 17:51:39 +03:00
Esa Korhonen
68f3b235e1 MXS-2650 Fix SSL-use with Connector-C
Authenticators and monitors now use SSL when configured. The fix has two parts:
1) Removed the extra SSLConfig inside SSLProvider, as SSLContext already contains
the config.
2) When inputting parameter values to mysql_ssl_set(), empty strings are converted
to NULL-pointers as the function expects those for unused values.
2019-08-29 17:46:26 +03:00
Timofey Turenko
96e81a6b59 Merge branch '2.4' of github.com:mariadb-corporation/MaxScale into 2.4 2019-08-29 17:43:36 +03:00