11852 Commits

Author SHA1 Message Date
Esa Korhonen
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
Esa Korhonen
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
Johan Wikman
4a01410742 Update schema router documentation 2018-10-04 13:01:40 +03:00
Johan Wikman
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
Markus Mäkelä
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
Esa Korhonen
e73ecae677 MXS-1845 Update documentation
Small cleanup and updates to release notes.
2018-10-04 11:45:33 +03:00
Esa Korhonen
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
Esa Korhonen
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
Markus Mäkelä
a438a6df34
Add note about backend connection IDs to release notes 2018-10-04 11:33:19 +03:00
Markus Mäkelä
af91192498
Add network throttling to release notes 2018-10-04 11:31:15 +03:00
Markus Mäkelä
a8b2f70041
Add binlogfilter to release notes 2018-10-04 11:31:15 +03:00
Markus Mäkelä
4a4434d4c8
Add REST API changes to release notes
Added new and changed REST API capabilities to the release notes.
2018-10-04 11:31:15 +03:00
Markus Mäkelä
3998a6e469
Update REST API documentation
Updated and unified the documentation of the REST API.
2018-10-04 11:31:15 +03:00
Markus Mäkelä
24f0162203
Add changelog entries
Added changelog entries and fixed a typo in the 2.3 release notes.
2018-10-04 11:31:14 +03:00
Markus Mäkelä
670cd4c8d1
Add drain server to release notes 2018-10-04 11:31:00 +03:00
Markus Mäkelä
bbb5dfc775
Mention the new cat router in the release notes 2018-10-04 11:31:00 +03:00
Markus Mäkelä
8d4db9dd5a
Add optimistic_trx to release notes 2018-10-04 11:30:59 +03:00
Niclas Antti
a4747f5b03 Revert the last commit, and an additional fix to the
"Fix code for warnings:" commit.
2018-10-03 17:22:10 +03:00
Niclas Antti
5892ef18af MXS-1777 ResponseStat improvements
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 allow better control of the sample_max.
2018-10-03 16:35:06 +03:00
Niclas Antti
268e689dc5 Fix code for warnings: unused-but-set-variable and warn_unused_result. 2018-10-03 16:33:24 +03:00
Johan Wikman
10a8f1d48c Reformat SchemaRouter.md
No content changes.
2018-10-03 14:59:48 +03:00
Johan Wikman
db70e133ef Add note of Comment filter to release notes and change log 2018-10-03 14:31:09 +03:00
Johan Wikman
ff0bcb3a06 Update release notes with Cache changes 2018-10-03 14:10:59 +03:00
Johan Wikman
d49173ba71 Update Hint-Syntax document 2018-10-03 13:57:55 +03:00
Johan Wikman
c41d43755b Reformat hint syntax document 2018-10-03 13:50:04 +03:00
Johan Wikman
7c5d3a5e74 Update NamedServerFilter documentation and release notes 2018-10-03 13:50:04 +03:00
Markus Mäkelä
b33b888b07
Remove atomic operations from buffers
As buffers are meant to be used only within a particular session, the
atomic operations are no longer necessary and can thus be removed. This
removes the extra overhead that the atomic operations add.
2018-10-03 12:12:59 +03:00
Markus Mäkelä
a645467827
Clean up buffer.cc
Cleaned up the code by removing gotos and initializing variables when they
are declared. Also added some space to some functions that felt cramped.
2018-10-03 12:12:59 +03:00
Markus Mäkelä
8ad045c019
Remove extra header
The curl header isn't needed nor is it present when building.
2018-10-03 11:58:02 +03:00
Markus Mäkelä
8b9fdaa0cb
Remove HTTP functionality
It wasn't used so it can be removed.
2018-10-03 08:41:45 +03:00
Markus Mäkelä
3daa0cd931
Update MaxCtrl documentation
Ran the documentation update script.
2018-10-03 08:41:45 +03:00
Markus Mäkelä
d5dbad19bb
Update readwritesplit documentation
Fixed a few typos, added the 10.2 relese where last_gtid tracking was
enabled, changed wording.
2018-10-03 08:41:44 +03:00
Markus Mäkelä
d866cb3a21
Add bias value to server score calculations
By biasing the values of all counter type scores to positive integers, the
server weights are always taken into use.

This fixes the case when weights were ignored until all score base values
were larger than zero (the mxs922_server test).
2018-10-03 08:41:44 +03:00
Markus Mäkelä
ea971a664e
Fix readconnroute debug assertion
If the DCB is closed in handleError, it would be NULL in closeSession. To
only close the DCB in one place, the handleError can be reduced to writing
an error to the client and marking the failure as a fatal one.
2018-10-03 08:41:44 +03:00
Markus Mäkelä
4216ffa384
Use std:🧵:hardware_concurrency
Using a standard-defined value is better than a system specific one.
2018-10-03 08:41:43 +03:00
Markus Mäkelä
e10f34d6aa
Remove size restrictions from network reads
The reads now read as much of the data as is available to reduce the
number of distinct malloc calls that need to be made. The SSL_read also
now allocates the buffer before reading into it so that the amount of
copying is reduced.

Also removed some of the not quite helpful debug messages.
2018-10-03 08:41:43 +03:00
Markus Mäkelä
1ed708559d
Assert that buffers are thread-local
Cross-thread usage of buffers should not happen and the debug assertions
help verify it.
2018-10-03 08:41:43 +03:00
Markus Mäkelä
304286e5fa
Remove unused code
The BUFFER_TRACE code was not in use and did not work as the HASHTABLE was
removed.
2018-10-03 08:41:42 +03:00
Esa Korhonen
d14b9bfe43 MXS-1845 Cluster stabilization rewrite
No longer writes events to the master, as this creates problems if the
promoted server was not the overall master. Instead, the slave status
output is inspected.
2018-10-02 11:09:16 +03:00
Esa Korhonen
1ca5d02abb MXS-1845 Add redirection code
Should work with multimaster replication.
2018-10-02 11:09:16 +03:00
Markus Mäkelä
75f9921ca2
Merge branch '2.2' into develop 2018-10-02 10:18:09 +03:00
Markus Mäkelä
dad4f55ee6
Save output of mysqlmon tests
Before the tests truncate the log, it can be copied to a backup file. This
allows the whole log to be inspected after the test is complete.
2018-10-02 09:44:02 +03:00
Markus Mäkelä
288fbc8c33
MXS-2075: Only enable stdout redirection for maxscale
The stdout redirection must not be enabled for the other programs as they
are not run as daemon processes.
2018-10-02 09:44:02 +03:00
Markus Mäkelä
048aee1fb7
Print output of failed Travis tests
If a unit test fails, print the output.
2018-10-02 09:44:02 +03:00
Markus Mäkelä
79d1eb19d7
Disable unit test leak checks for DEB packages
The unit tests themselves don't leak memory but some of the core
components of MaxScale do. To ignore this, ASAN_OPTIONS needs to be
defined.
2018-10-02 09:44:02 +03:00
Markus Mäkelä
62e5f988c5
MXS-2075: Redirect stdout and stderr to the log
If the log file is successfully opened, both stdout and stderr are
redirected to it. This helps catch ASAN reports without having to read the
system journal files.

As the output is redirected to a file, some of the output was made visible
only in non-daemon mode. This helps keep the log file clean and readable.
2018-10-02 09:44:02 +03:00
Markus Mäkelä
3fd0c2c407
Stop timeout during slave sync 2018-10-02 09:44:01 +03:00
Markus Mäkelä
7b5985d6be
Add missing connect to mxs682_cyrillic
The connections were used without connecting.
2018-10-02 09:44:01 +03:00
Markus Mäkelä
c7fc00b3d8
Shorten mxs812_1
Three iterations should be adequate for most cases.
2018-10-02 09:44:01 +03:00
Markus Mäkelä
d87d462c76
MXS-2049: Update GSSAPI documentation
Corrected the documentation and provided more details on how to configure
the authenticator.
2018-10-02 09:44:01 +03:00