10424 Commits

Author SHA1 Message Date
Markus Mäkelä
994bfcd285
MXS-2268: Fix undefined behavior
Using a void return value as an integer results in undefined behavior.
apparently in this case it doesn't translate into a crash and instead only
manifests itself when all the planets align.
2019-02-07 10:38:38 +02:00
Timofey Turenko
a9f6955fc8 Revert "add systemd-dev package to the build env"
This reverts commit da6d358f9fee7cb7302f082f179c45f581e681d3.
2019-01-31 14:07:52 +02:00
Markus Mäkelä
abaa228987
Add extra definitions to debug build service files
The unlimited core dumps are now only enabled for debug builds.
2019-01-31 13:14:46 +02:00
Timofey Turenko
f0abe9cbdc add /bin/sh before prlimit command in service start 2019-01-30 23:31:45 +02:00
Timofey Turenko
45f85a2740 add prlimit command to service start 2019-01-30 18:45:24 +02:00
Timofey Turenko
da6d358f9f add systemd-dev package to the build env 2019-01-29 14:14:46 +02:00
Timofey Turenko
aab7ab7dee add core dump configiration line to maxscale.service 2019-01-29 12:06:33 +02:00
Esa Korhonen
97c0c76321 MXS-2267 Document requirements for an accepted PAM user
The requirements are typical of MaxScale authenticators.
Also, fixes the fallback PAM service.
2019-01-24 16:44:34 +02:00
Markus Mäkelä
1e1836354b
MXS-2257: Extend password encryption tutorial
Fixed the documentation on the arguments to maxkeys, which is a directory,
and added a short paragraph about alternative key file locations. Also
documented that keys are read from the directory where the `datadir`
parameter points to.
2019-01-16 13:33:14 +02:00
Markus Mäkelä
9def07ab4a
Document connection_timeout behavior
The fact that a warning is logged was not documented.
2019-01-15 18:42:20 +02:00
Markus Mäkelä
bec33be672
Backport to 2.2: Simplify mxs1743_rconn_bitmask
The test now uses maxctrl to count how many connections there are. This
helps avoid creating new users on the database and works around the slave
syncing problems.
2019-01-11 13:13:04 +02:00
Johan Wikman
9284e8e64c Merge branch '2.2.19' into 2.2 2019-01-11 13:02:05 +02:00
Johan Wikman
18c57dc6cc Update 2.2.19 release date 2019-01-11 12:58:33 +02:00
Markus Mäkelä
4c61b646a4
Wait two intervals in mysqlmon_failover_rejoin_old_slave
The failover process takes at least two intervals to happen. With only a
single wait, it was down to luck whether the test would succeed.
2019-01-11 09:34:06 +02:00
Johan Wikman
6977828f2d Update maintenance version in 2.2 minor branch 2019-01-10 10:04:20 +02:00
Johan Wikman
27b3ab28e0 Update 2.2.19 release notes 2019-01-09 09:13:07 +02:00
Johan Wikman
e64b034334 MXS-2248 Add change that fixes the problem
Any kind of expression is legal after INTERVAL.
2019-01-09 09:11:49 +02:00
Johan Wikman
a456168fd0 MXS-2248 Add test that reveals problem 2019-01-09 09:11:49 +02:00
Markus Mäkelä
d9faea4979
Fix -Wshadow warnings
The cdc_connector.h won't built with -Wshadow if the variable and method
names match.
2019-01-09 09:00:00 +02:00
Markus Mäkelä
c0ebf663e3
Make the error message a const char* const
This prevents linker errors if the source files are used directly.
2019-01-09 08:59:49 +02:00
Johan Wikman
9cba1bdc37 Update release notes 2019-01-08 15:58:20 +02:00
Johan Wikman
2895f361d9 MXS-2242 Add change that fixes the problem
A whole slew of missing builtin functions were added, not just the
ones directly relevant for MXS-2242.
2019-01-08 15:55:41 +02:00
Johan Wikman
f94ddadc18 MXS-2242 Add test that reveals problem 2019-01-08 15:55:41 +02:00
Johan Wikman
8ab5d79025 Merge branch '2.2' into 2.2.19 2019-01-08 15:55:21 +02:00
Oleksandr Kovtunenko
d569cff98f try to Fix MXS-2206 (#185)
* try to Fix MXS-2206

* use sort -v

* return empty line
2019-01-08 11:58:35 +02:00
Markus Mäkelä
2172c4ca85
MXS-2048: Fix dbfwfilter module command documentation
Fixed the command names.
2019-01-06 13:17:32 +02:00
Markus Mäkelä
bc346422fb
Add minimal CDC client
Added a minimal CDC client application that uses the CDC connector
library. This is mainly intended for manual testing so it is built using
the accompanying Makefile instead of being a part of the CMake system.
2019-01-06 13:05:42 +02:00
Markus Mäkelä
46bea87ff6
MXS-2238: Fix reading of large Avro schemas
The schemas were read incorrectly which resulted in large schemas having
multiple newlines in them.
2019-01-06 13:05:42 +02:00
Markus Mäkelä
7b6ae4bc13
Add 2.2.19 release notes
Generated 2.2.9 release notes and added them to the changelog.
2019-01-06 13:05:42 +02:00
Markus Mäkelä
c8d4052aec
Improve release note generation script
The script can now be run from outside of the directory it is contained
in.
2019-01-03 13:34:10 +02:00
Markus Mäkelä
1b0b32cbe8
Update release documentation
Updated the instructions on how releases are made.
2019-01-03 13:07:05 +02:00
Markus Mäkelä
87c3b1d25b
MXS-2234: Extend persisted config file log message
The log message should now contain enough information to more easily debug
any configuration issues that result from updating the main config file
after runtime changes have been done.

Also fixed the theoretical race condition in detection of persisted
configuration files by only checking for their existence once.
2019-01-03 12:48:30 +02:00
Markus Mäkelä
8f0e4a3034
MXS-2232: Fix version string prefix check
The prefix was always added even when the original version would've been
acceptable. For example, a version string of 5.5.40 would get converted to
5.5.5-5.5.40 which is quite confusing for older client applications.
2019-01-02 19:29:48 +02:00
Markus Mäkelä
04dd05b262
MXS-2231: Move TLS handshake code into MariaDBClient
The code is now in the correct place and TLS connections with all
authenticators should now work.
2019-01-02 19:29:41 +02:00
Markus Mäkelä
d48c17fd08
MXS-2231: Add Kerberos+SSL test case
Added a test case that uses Kerberos services with SSL enabled listeners.
2019-01-02 19:27:14 +02:00
Markus Mäkelä
edd03e950f
MXS-2209: Use compound roles only with 10.2.15+
Due to MDEV-15556 and MDEV-15840 recursive CTEs can't be reliably used
with older 10.2 versions. To prevent problems, only use the query that
extracts composite roles with newer versions.
2019-01-02 19:27:14 +02:00
Timofey Turenko
038f4d63e1
Mxs 2226 long test (#186)
* add possibility to run named test

* remove sysbench_dir

* remove unsupported in 1.0 sysbench options

* exculed ReadConnRouter sysbench test

* fix sysbench table name
2018-12-31 17:27:04 +02:00
Johan Wikman
0b67a22add Merge branch '2.2.18' into 2.2 2018-12-13 11:01:30 +02:00
Johan Wikman
562bd0c3fb Update release date 2018-12-13 10:55:08 +02:00
Johan Wikman
bad8c03df9 Update version number 2018-12-12 13:04:07 +02:00
Johan Wikman
136c0c3062 Add release notes for 2.2.18 and update change log 2018-12-12 12:44:48 +02:00
Niclas Antti
f2a3a5737a MXS-2221 Fatal signal handling does not always create a core
Quick and simple fix, but this should be overhauled. See MXS-599.
2018-12-11 14:22:35 +02:00
Markus Mäkelä
48efa6d027 MXS-2213: Clear stored PS information
The information stored for each prepared statement would not be cleared
until the end of the session. This is a problem if the sessions last for a
very long time as the stored information is unused once a COM_STMT_CLOSE
has been received.

In addition to this, the session command response maps were not cleared
correctly if all backends had processed all session commands.
2018-12-11 13:54:10 +02:00
Markus Mäkelä
8b00a00ea7 MXS-2216: Use correct function in response processing
When a response to a prepared statement was processed, the number of EOF
packets was used to see whether the response was complete. This code used
a function that does not work with the special packet returned by a PS
preparation that is similar to an OK packet.

The correct method is to count the total number of packets in the
response.
2018-12-11 13:54:10 +02:00
Johan Wikman
87d2a45b20 MXS-2207 Fix the problem in qc_mysqlembedded 2018-12-03 16:03:51 +02:00
Johan Wikman
964180804c MXS-2207 Add test that reveals problem
With qc_mysqlembedded statements like

    SET STATEMENT ... FOR stmt;

are always classified as READ, although their type should be
that of stmt.
2018-12-03 15:59:43 +02:00
Markus Mäkelä
cb878f18b7
Update max_slave_connections documentation
Corrected the default value and added a more detailed explanation of what
the parameter does and how it affects client connections.
2018-11-29 08:47:11 +02:00
Johan Wikman
590e489be0 Merge branch '2.2.17' into 2.2 2018-11-28 11:23:47 +02:00
Johan Wikman
b3a425c048 Update 2.2.17 release date 2018-11-28 11:07:06 +02:00
Markus Mäkelä
6451b1f21a
MXS-2183: Fix memory leaks
Under heavy load some of the basic network operations could fail which led
to some of the allocated memory to leak.

Also the backend protocol never freed the current protocol command if it
was not completed. This would happen if a user executed a session command
as the first command but backend authentication would fail.
2018-11-28 02:03:00 +02:00