Johan Wikman
6cd86051de
MXS-2470 Invalidate tail pointers
...
Although not made unambiguously clear, it is *ONLY* allowed to
manipulate GWBUFs that are the first link of a GWBUF chain (that
may consist of just one link).
With this change, in debug mode the tail pointer of intermediate
links is invalidated so that an attempt to use an intermediate
link is likely to cause a crash.
2019-05-17 14:37:38 +03:00
Esa Korhonen
4ee30f5c52
MXS-2169 Allow a downed server to be selected as topology master
...
This is required for the case when MaxScale is started when the master is
already down.
2019-05-17 13:46:33 +03:00
Esa Korhonen
d2f3e56d0a
MXS-2169 Add 'enforce_simple_topology'-setting
...
Does not add any functionality yet.
2019-05-17 13:46:33 +03:00
Esa Korhonen
c801789ff3
Cleanup monitor running state
2019-05-17 13:34:48 +03:00
Esa Korhonen
08b4c26652
Monitor types and fields cleanup
...
Moves some enums to class enums. Moves some free functions to class methods.
2019-05-17 13:34:48 +03:00
Esa Korhonen
f86f2c7688
Move remaining monitor status print functions inside class
2019-05-17 13:31:20 +03:00
Johan Wikman
0a6c94d77b
Merge branch '2.3' into develop
2019-05-16 10:55:19 +03:00
Johan Wikman
1c820f6ae3
Merge branch '2.3.7' into 2.3
2019-05-16 10:55:02 +03:00
Johan Wikman
1dbe599b2a
Update 2.3.7 release date
...
Also remove the MXS-2475 'Fix mxs1980_blr_galera_server_ids_' "bug"
that was changed into a task as it has no impact on users of MaxScale.
2019-05-16 10:47:46 +03:00
Johan Wikman
a12a0af887
Merge branch '2.3' into develop
2019-05-15 15:47:36 +03:00
Johan Wikman
0f85baabe1
MXS-2491 Remove global destructor inter-dependency
...
log.cc:this_unit.slogger depends upon logger.cc:this_unit.ident.
Depending on which one is destructed first, there will be a crash
or then not.
It seems that the destruction order when returning from main()
is not necessarily the same as that when calling exit() in main,
as this bug is triggered with compilers versions and not with other.
2019-05-15 15:46:20 +03:00
Johan Wikman
8a67c702b8
MXS-2475 Final fix for mxs1980_blr_galera_server_ids
...
In this context wsrep_gtid_domain_id and gtid_domain_id need to
be the same to ensure that all gtids will be the same.
2019-05-15 14:55:21 +03:00
Johan Wikman
b80aa081fe
Fix test_buffer test case
2019-05-15 12:17:10 +03:00
Johan Wikman
2472911aac
Fix qc compare.cc build error
2019-05-15 11:02:53 +03:00
Johan Wikman
75d50c3411
Update 2.3 maintenance version number
2019-05-15 09:19:09 +03:00
Johan Wikman
74d912195a
Add release notes and update change log for 2.3.7
2019-05-15 09:11:40 +03:00
Johan Wikman
f4e9f68615
Fix test_qc_comparecreate
2019-05-14 15:44:49 +03:00
Johan Wikman
0ee985758e
Fix test_binlogrouter
...
The MySQL... -> MariaDB.. name change required some modifications.
2019-05-14 15:23:08 +03:00
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