11840 Commits

Author SHA1 Message Date
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
Markus Mäkelä
f65c890287
MXS-2049: Forward client credentials to backend server
Instead of requesting another set of credentials, the client credentials
are simply forwarded to the backend MariaDB server.
2018-10-02 09:44:01 +03:00
Markus Mäkelä
93d866c6a7
MXS-2073: Add missing TCP_NODELAY for client sockets
The client connections had the Nagle algorithm enabled which could cause
bad performance with smaller workloads. The common network configuration
code in utils.cc, currently used by the backend connections, sets it
properly.
2018-10-02 09:44:00 +03:00
Markus Mäkelä
ee45900648
Remove network variable export file after use
Otherwise the file is left in the current working directory.
2018-10-02 09:44:00 +03:00
Esa Korhonen
6b8443aba6 MXS-1845 Complete server promotion code
Now copies slave connections from the previous master. Promotion
code taken into use.
2018-10-01 18:06:39 +03:00
Johan Wikman
809ab487b2 Update version number for 2.2 2018-10-01 13:13:40 +03:00
Johan Wikman
dbbadf1f53 Merge branch '2.2' into develop 2018-10-01 13:10:41 +03:00
Johan Wikman
c58a461f87 Merge branch '2.2.15' into 2.2 2018-10-01 13:10:05 +03:00
Johan Wikman
03137428fa Update 2.2.15 release date
And add missing link in change log.
2018-10-01 13:01:56 +03:00
Niclas Antti
c65edd1298 Enhance StopWatch
Clean up, comments and enhancements. StopWatch lap() didn't mean lap-time, but elapsed time. Changed meaning to lap-time and added split() for split-time.
2018-10-01 09:30:24 +03:00
Markus Mäkelä
ceb763c9be
Fix buffer size in cache rules
If a database, table and a column was defined, the null terminating
character would be written past the end of the buffer.
2018-09-30 22:35:13 +03:00
Markus Mäkelä
bb8245d2c1
Merge branch '2.2' into develop 2018-09-30 21:26:47 +03:00
Markus Mäkelä
4554bd1743
Cherry-pick: Fix ASAN problems
Cherry-picking the commit from develop since it's also needed for 2.2.

FindASAN did not look for so version 5 and TSAN referred to ASAN. Disable
leak checks for unit tests as some objects always leak, namely servers.
2018-09-30 20:12:35 +03:00