13371 Commits

Author SHA1 Message Date
Johan Wikman
5b3dbdbf16 Fix test_cacheoptions and test_dbfwfilter
Due to listener changes we cannot just keep on creating new
listeners with the same port over and over again.

Easiest to simply use a different port each time.
2019-05-14 15:01:15 +03:00
Johan Wikman
cefed56c48 Update unit tests due to mysqlauth -> mariadbauth change 2019-05-14 14:37:11 +03:00
Esa Korhonen
884b5ea706 Change monitor ticks to atomic_long
The original atomic_int64_t was not supported on older compilers.
2019-05-14 14:02:02 +03:00
Johan Wikman
4ed8726ccf Fix merge bug 2019-05-14 14:01:16 +03:00
Marko
17d3beba3b MXS-2385 Fix the problem with the USE command and tpmfilter
Trying to get the type mask of the QWBUF caused debug assertion in the query
classifier when using some commands. Now type mask is checked only when the
buffer contains MXS_COM_QUERY command.
2019-05-14 13:40:37 +03:00
Johan Wikman
32c2724454 Merge branch '2.3' into develop 2019-05-14 13:36:54 +03:00
Johan Wikman
01c4beec10 MXS-2470 Update tail pointer in gwbuf_clone 2019-05-14 13:36:33 +03:00
Johan Wikman
600e23ae2d MXS-2470 Add unit test that reveals problem 2019-05-14 13:36:33 +03:00
Johan Wikman
1a6a91e183 Merge branch '2.3' into develop 2019-05-14 12:34:58 +03:00
Johan Wikman
195eeb0c64 Merge branch '2.2' into 2.3 2019-05-14 12:34:40 +03:00
Johan Wikman
c09617cd82 Merge branch '2.3' into develop 2019-05-14 12:33:50 +03:00
Timofey Turenko
ffecce4153 Fix non_native_setup
The arguments must be passed as-is to the TestConnections constructor.
2019-05-14 10:54:32 +03:00
Johan Wikman
b7d948db3f MXS-2475 Properly setup the Galera nodes 2019-05-14 10:13:09 +03:00
Johan Wikman
79cfd7183d MXS-2475 Fix mxs1980_blr_galera_server_ids test
At some point the replicating slave had been changed to be
a Galera node. Won't work as the Galera node is a master.
2019-05-14 10:13:09 +03:00
Marko
22a9e20f1f MXS-1957 Change the default authenticators to MariaDB aliases
Using MySQLAuth or MySQLBackendAuth causes warning to be logged.
2019-05-13 15:35:09 +03:00
Marko
50fef6f361 MXS-1957 Add MariaDBAuth alias 2019-05-13 15:35:09 +03:00
Marko
9810c5fa69 MXS-1957 Add MariaDBBackendAuth alias 2019-05-13 15:35:09 +03:00
Esa Korhonen
476dc80bc9 Move settings shared between MariaDBMonitor and MariaDBServer to container
Removes the need to communicate these settings via call parameters.
2019-05-10 14:48:41 +03:00
Esa Korhonen
d10c7a4140 Rearrange MariaDB-Monitor settings variables
Moves some of the settings to a dedicated container to separate them
from other fields.
2019-05-10 14:48:41 +03:00
Esa Korhonen
a9b1e3a442 Move some Monitor fields to private and protected
None of the fields should be publicly writable and some should not even
be writable from derived classes.
2019-05-10 14:48:41 +03:00
Esa Korhonen
5077ad62df Move monitor runtime modification functions to MonitorManager
Requires moving some general configuration checking functions to
config.cc.
2019-05-10 14:48:41 +03:00
Esa Korhonen
a163fa8a2c Update release notes on reverse DNS option 2019-05-10 14:45:19 +03:00
Esa Korhonen
a3bb61486d Move server_set_status and server_clear_status to monitor
The operation goes through monitor code so should be in the according file.
2019-05-10 14:37:35 +03:00
Markus Mäkelä
b0d8535ead
Allow master changes at transaction start
When a BEGIN statement is being executed without a master connection but
when one can be created, the BEGIN statement would be treated as if a
transaction was already open. Since the statement only starts the
transaction, it is allowed to be routed to a "new" master regardless of
the transaction statem.

This fixes the failure to start a transaction when lazy_connect is
enabled.
2019-05-10 13:20:33 +03:00
Markus Mäkelä
ef25eceb78
Test lazy_connect
The test makes sure the various corner cases are covered by the test
suite.
2019-05-10 13:20:33 +03:00
Markus Mäkelä
5960bb5e61
Extend mxs359_error_on_write
The test now checks that an error is returned even if the master fails
mid-query.
2019-05-10 13:20:33 +03:00
Markus Mäkelä
2b292c1e5c
Test causal_reads with slow slaves
Extended the test to cover the retrying of the query on the master that
happens when the slave is lagging behind.
2019-05-10 13:20:33 +03:00
Markus Mäkelä
7cb9801e1e
MXS-2152: Copy files to a local directory first 2019-05-10 13:20:33 +03:00
Markus Mäkelä
35a232aa5d
MXS-2152: Fix coverage report export location 2019-05-10 13:20:32 +03:00
Markus Mäkelä
b78e0f9a08
MXS-2152: Always start maxscale_000 in run_test.sh 2019-05-10 13:20:32 +03:00
Markus Mäkelä
4717b4c975
MXS-2152: Enable code coverage for specific test runs 2019-05-10 13:20:32 +03:00
Markus Mäkelä
c0b238a9e7
MXS-2152: Add rudimentary test coverage collection
If the build is configred with -DGCOV=Y, a HTML report of code coverage is
generated in the log publish directory.
2019-05-10 13:20:32 +03:00
Markus Mäkelä
45f508a376
Fix listener creation
The correct parameters weren't set in Listener::create and there was no
check for two listeners listening on the same socket.
2019-05-10 13:20:32 +03:00
Markus Mäkelä
b10fc196a1
Fix maxinfo/maxadmin debug assertion
Both services could write to a DCB from a worker that doesn't own it.
2019-05-10 11:23:10 +03:00
Markus Mäkelä
603eac9cf8
Fix build failures
Narrowing type conversions in schemarouter and avrorouter.
2019-05-10 10:37:52 +03:00
Markus Mäkelä
de95fcc9d6
Format rest of the sources 2019-05-10 10:31:12 +03:00
Markus Mäkelä
fbd61967a7
Format filters 2019-05-10 10:31:12 +03:00
Markus Mäkelä
418ccf861d
Format routers and monitors 2019-05-10 10:31:12 +03:00
Markus Mäkelä
6625c1296b
Format authenticator and protocol modules 2019-05-10 10:31:12 +03:00
Markus Mäkelä
0d13e694e4
Merge branch '2.3' into develop 2019-05-10 09:28:39 +03:00
Markus Mäkelä
b4e8f79c5f
Format core sources again
Formatted with nl_func_type_name and related options set to ignore. This
keeps the formatting intact for long return types in declarations and
definitions.
2019-05-10 09:21:52 +03:00
Markus Mäkelä
50b5fe76ef
Pass parameters as const ref to server_alloc 2019-05-10 09:21:52 +03:00
Markus Mäkelä
d203e7af83
Move SSL related code into ssl.cc
The code was in the listener sources but was shared by both listeners and
servers.
2019-05-10 09:21:52 +03:00
Markus Mäkelä
31ce757f8d
Don't attempt TLS with maxscaled protocol
The authenticator doesn't support it so it is pointess to try it.
2019-05-10 09:21:52 +03:00
Markus Mäkelä
3813c728b1
Move listener parameter handling into Listener::create
The Listener::create method now takes a set of configuration parameters
from which it constructs a listener. This removes the duplicated code and
makes the behavior of listener creation similar to other objects in
MaxScale. It also allows the configuration parameters to be stored in the
listener object itself.
2019-05-10 09:21:52 +03:00
Timofey Turenko
ca21d27c68 Merge branch 'develop' of github.com:mariadb-corporation/MaxScale into develop 2019-05-10 09:18:32 +03:00
Markus Mäkelä
142038051c
Fix GCC 9 warnings
GCC 9 has warnings about pessimistic return values which are triggered by
returning a local value via std::move.
2019-05-10 09:11:40 +03:00
Markus Mäkelä
1efe3e0b20
Fix avrorouter client notifications
The notifications that tell clients about new data weren't using the
correct mechanism.
2019-05-10 09:11:39 +03:00
Markus Mäkelä
37bfe1cd67
Never exceed persistent connection limits
By doing the persistent connection count incrementation with CAS, value
can be guaranteed to never exceed the configured limit.
2019-05-10 09:11:39 +03:00
Johan Wikman
034dc6a67e MXS-2472 Update BLR docs on secondary masters 2019-05-09 17:14:57 +03:00