Commit Graph

12045 Commits

Author SHA1 Message Date
4d6f961695 Cleanup mariadbserver.hh 2018-10-09 14:29:49 +03:00
5cc4eb08ee Clean up mariadbmon.hh 2018-10-09 14:29:49 +03:00
68d65682b5 Reorganize MariaDBServer code
The server-class keeps growing, so the additional classes are moved out of
the main class file.
2018-10-09 14:29:49 +03:00
0a04cb2d48 Clarify namedserverfilter documentation
The example configuration had wrong server names.
2018-10-09 13:42:56 +03:00
7e7ee3e180 Update MaxAdmin documentation
'show threads' documentation was completely out of date.
2018-10-09 11:36:47 +03:00
7ff69df388 Merge branch '2.3.0' into 2.3 2018-10-09 10:17:34 +03:00
ad0f87faef Remove all 2.2 release notes from 2.3.
By convention, the release note directory of a minor version only
contains the release notes of that version.
2018-10-09 09:44:10 +03:00
60100f1b2f Bump 2.3 version number 2018-10-09 09:32:19 +03:00
0d64bfc558 Update 2.3.0 release date. 2018-10-09 09:26:33 +03:00
e3ef99f1f7 Fix check for unit tests in scripts 2018-10-08 17:18:02 +03:00
9789159427 Add missing type 2018-10-08 10:21:51 +03:00
13d0c818f3 Stop keepalived after the test
Stopping keepalived on all nodes prevents it from interfering with tests
run after it.
2018-10-08 10:08:46 +03:00
a0d12191da Create test database when processing config template
For an unknown reason, the mxs874_slave_recovery test times out unless the
test database is created when the config templates are being processed.
2018-10-08 09:53:30 +03:00
a9a20bf16b Fail faster in mxs1929_filter_runtime
If the test fails, there's no point in continuing with the load generation
as it only serves to slow things down. In few cases the test caused
std::bad_alloc to be thrown which prematurely stopped the ctest run.
2018-10-08 01:07:22 +03:00
166e335e95 Set version to 2.3.0
Added new version file and started versioning for 2.3.
2018-10-07 10:34:04 +03:00
9c52ba5c07 Update release notes and documentation for the Throttle Filter
and Adaptive Routing
2018-10-05 13:52:42 +03:00
59d45aabb4 MXS-1980 Update documentation
And release note and change log.
2018-10-05 12:16:18 +03:00
3d06b5129d MXS-1980 Extend test program
Now the test program will

1) Write to each node in a Galera cluster and verify that the data
   ends up in the slave.
2) At the end of 1) execute STOP SLAVE and START SLAVE to check that
   replication can be stopped and started again (won't work unless
   each node has the same server_id and value for @@log_bin_basename).
3) Block the node BLR is replicating from and expect it to connect
   to the next configured master and that replication continues to
   work. Do that for all nodes.
4) Stop MaxScale and restart it and expect 3) to work. That checks
   that BLR saves all necessary information in master.ini and is
   capable of reading it.
2018-10-05 12:16:18 +03:00
c4e1e19f4a MXS-1980 Check that Galera replication works
It should be possible to START SLAVE and STOP SLAVE irrespective
of which Galera node updates are mode to.

That will be the case if @@log_slave_updates is on and each node
in the Galera cluster have the same server id. Otherwise it will
fail with the current incarnation of BLR.
2018-10-05 12:16:18 +03:00
fed5037081 Make copying of SSL certs conditional
If the certs exist, they are not copied. This makes testing slightly
faster.
2018-10-05 11:25:50 +03:00
8029bdff4f Process maxscale.cnf template with one sed command
Using a single sed command with multiple -e flags is faster than multiple
separate sed commands.
2018-10-05 11:25:49 +03:00
59a1ef359d Fail faster in builds
If `make` fails, there's no point in doing anything else.
2018-10-05 11:02:06 +03:00
c10f56bea1 Fix binlogfilter build failure
The macros weren't apparently included so swapped them to explicit format
strings.
2018-10-05 11:00:08 +03:00
75ea1b6ea1 Fix formatting of new(std::nothrow)
The code previously formatted everything as `new( std::nothrow)`.
2018-10-04 21:50:44 +03:00
1af43d4ff5 Speed up mxs1961_standalone_rejoin
The waits were needlessly long. Also cleaned up a bit.
2018-10-04 20:29:19 +03:00
a398da58a4 Add sleep to execute_cmd_time_limit
If the query fails instantly, the retries end up busy-looping. Now
each try is at least one second.
2018-10-04 20:19:57 +03:00
707506feae A slave must have running slaves to be a relay master
This prevents some questionable status assignments, but also means that
the Relay Master status can be lost if a slave goes down. This is
contrary to Master status which is not lost if slaves go down. Fixes
mxs1961_standalone_rejoin.
2018-10-04 20:16:29 +03:00
374ae2fc9b Only redirect usable slaves
Prevents pointless retrying/waiting when redirecting slaves.
2018-10-04 20:11:12 +03:00
3b1b63d939 MXS-1777 Change LOWEST_RESPONSE_TIME to ADAPTIVE_ROUTING
LOWEST_RESPONSE_TIME is not quite correct, and marketing material
will call it Adaptive Routing, so better match that.
2018-10-04 19:26:16 +03:00
ef948042f0 Fix race in housekeeper
Could and indeed did lead to housekeeper exiting immediately.
2018-10-04 18:06:12 +03:00
e56492c23f MXS-1777 Make "Sample Max" of the server EMAverage adaptive
A rather simple but very effective method as testing shows.
2018-10-04 17:53:57 +03:00
19f8e1697b Make the Server's EMAverage a member
The combined effort of all workers of updating EMAverage is needed for precision,
statistics and making parts of it adaptive (rather than hardcoded or configured).
2018-10-04 17:53:57 +03:00
ada91f2d53 MXS-1777 Make sure slower servers are sampled sufficiently 2018-10-04 17:53:57 +03:00
415c7fa2d7 MXS-1777 MXS-1777 ResponseStat improvements (take 2).
Fix comments.
Fix a bug in make_valid().
Change sync time (when the average should be pushed to the server EMA)
to only depend on time, not use sample_max. This decreases the amount of
sync calls, and allows for a much shorter sync time. Testing shows this to be
more stabel and allows to make sample_max adaptive .
2018-10-04 17:53:57 +03:00
0ff72c5d5e Change table sharding to table family sharding 2018-10-04 15:17:54 +03:00
70907097c5 Exclude MXS-2047 test case
Moved to the MXS-2047 branch.
2018-10-04 15:17:54 +03:00
81c24888da Fix release note headings 2018-10-04 14:27:54 +03:00
4dcdd1a182 Fix typos in Changelog.md 2018-10-04 14:27:53 +03:00
80c731f02a Fix verify_master_failure
The log message had changed, changed test to match. Also, the remaining
delay is now printed.
2018-10-04 13:38:10 +03:00
86ae0c3e4d MXS-1845 Remove unneeded code & cleanup 2018-10-04 13:38:10 +03:00
db6a187cd3 Fix mysqlmon_external_master
Removed unneeded operations, added comments and cleanup. The test requires a larger
rework to be more useful.
2018-10-04 13:33:33 +03:00
2e589e0328 Fix mysqlmon_rejoin_bad2
The test didn't work correctly with the failover/switchover changes.
Also cleaned up the test a bit.
2018-10-04 13:09:28 +03:00
a1b3a005dd MXS-1845 Relax cluster operation support requirements
Support for more complicated topologies is quite close to completion and
in any case the function was too aggressive.
2018-10-04 13:09:28 +03:00
4a01410742 Update schema router documentation 2018-10-04 13:01:40 +03:00
9ecd027ea0 Test: Provide additional control of local MaxScale
When running BLR locally, you need to be able to specify what
IP the BLR is visible at (127.0.0.1 does not work for VM nodes)
and also to perform cleanup etc. action when needed.
2018-10-04 12:57:54 +03:00
661bdd5b82 Work around debug assertions in binlogrouter
The binlogrouter uses buffers across worker threads which is no longer OK
in 2.3. The correct solution would be to store data in something other
than a GWBUF (e.g. std::vector) and protect the sharing with a mutex. The
current solution simply works around the assertions by using macros
instead of functions.
2018-10-04 12:48:27 +03:00
e73ecae677 MXS-1845 Update documentation
Small cleanup and updates to release notes.
2018-10-04 11:45:33 +03:00
30eb21914f MXS-1845 Switchover cleanup
Several small changes:
Binlog is flushed at the end of old master demotion.
Only new master is required to catch up to old master.
Use the same replication check method as failover.
2018-10-04 11:45:33 +03:00
49e85d9a28 MXS-1845 Add demotion code
The master demotion in switchover now uses query retrying with
the switchover time limit.
2018-10-04 11:45:33 +03:00
a438a6df34 Add note about backend connection IDs to release notes 2018-10-04 11:33:19 +03:00