7686 Commits

Author SHA1 Message Date
Markus Mäkelä
c850336199
MXS-1907: Allow ssl_verify_peer_certificate when creating listener
When a listener is created at runtime or SSL is being enabled for an
already created listener, the ssl_verify_peer_certificate parameter can
now be defined.
2018-06-08 10:11:43 +03:00
Markus Mäkelä
46d1187172
Backport GCC 8 fixes to 2.1
Backported the minimal set of changes required to build 2.1 with GCC
8. The format-truncation and format-overflow warnings are disabled instead
of fixed in 2.1 to remove duplication of effort that was already done in
2.2 (the commit doesn't cherry-pick cleanly).
2018-05-16 11:09:47 +03:00
Johan Wikman
05a6f12c63 Update release date 2018-05-16 09:21:22 +03:00
Markus Mäkelä
3e0a0988f0
MXS-1628: Fix default database extraction
The default database was not extracted correctly as the length of the
user's name did not include the null terminator. Also the comparison for
database name length used the smaller than operator instead of the correct
larger than operator.
2018-05-15 11:23:11 +03:00
Johan Wikman
4e6184c894 Update 2.1.17 release notes 2018-05-14 10:07:10 +03:00
Markus Mäkelä
0a39fab562
Update 2.1.17 release notes
Added newly fixed bugs into the release notes.
2018-05-14 09:40:45 +03:00
Markus Mäkelä
9c8cd07a00
MXS-1628: Prevent out-of-bounds read on bad handshake packet
If the client would send a malformed handshake packet, out-of-bounds
memory could be read.
2018-05-14 09:40:40 +03:00
Markus Mäkelä
d7ca5f5b5d
MXS-1628: Add bad handshake test case
The test checks that a bad handshake error is returned when a malformed
packet is sent.
2018-05-10 22:24:39 +03:00
Markus Mäkelä
7d784001df
MXS-1628: Respond with correct error to malformed packets
If the client sent a malformed authentication response packet, MaxScale
would interpret that as failed authentication.
2018-05-10 22:24:39 +03:00
Markus Mäkelä
a544239540
Fix masking filter documentation
The example had invalid JSON in it.
2018-05-10 22:24:14 +03:00
Esa Korhonen
bcbb823ab3 MXS-1772 Document netmask limitations
Only mentioned in the MySQL authenticator section, although the limitation
is likely in all authenticators.
2018-05-07 16:37:43 +03:00
Timofey Turenko
11e20f9cca Merge branch '2.1' of github.com:mariadb-corporation/MaxScale into 2.1 2018-05-02 11:33:13 +03:00
Johan Wikman
b8bba93f08 MXS-1839 Do not leak memory from maxinfo "show sessions"
When there is nothing more to show, the resultset user data
must be freed.
2018-05-02 10:37:03 +03:00
Timofey Turenko
e2b9e95e63 add libedit-dev build dependency to DEB-builds 2018-04-30 14:13:41 +03:00
Johan Wikman
5dbdb8af8a Update 2.1.17 release notes. 2018-04-24 13:05:20 +03:00
Johan Wikman
bafe8f5eeb MXS-1618 Use right type for the return value of getopt_long
getopt_long returns an 'int'. If 'char' is used on a big-endian
platform you'll end up with an infinite loop.
2018-04-24 12:31:08 +03:00
Johan Wikman
7a81f77649 Add release notes for 2.1.17
Update Changelog as well.
2018-04-24 10:12:29 +03:00
Johan Wikman
65260c365d MXS-1819 Also log info messages to syslog
If info messages are enabled, they will be logged to syslog
just like any other messages.
2018-04-24 10:02:47 +03:00
Johan Wikman
627c1945bc Update version number in 2.1 2018-04-24 09:33:37 +03:00
Markus Mäkelä
f94d1a9863
MXS-1767: Remove old debug assertion
The old assertion expected MaxScale to present the COMPRESS capability
which it doesn't support.
2018-04-10 15:24:57 +03:00
Markus Mäkelä
099219fa0f
MXS-1767: Fix value assignment in ss_dassert
The value was updated for debug builds but not for release builds. This
caused debug builds to fail if special flags were requested.
2018-04-09 14:15:30 +03:00
Markus Mäkelä
cddf132d23
MXS-1762: Compare client IP when choosing a connection
When the connection pool is inspected, both the client username and IP
must match. This causes the pool to be partitioned by username and IP,
prevening unintentional sharing of connections between different users.
2018-04-09 13:21:18 +03:00
Johan Wikman
d07d9d59df Update release date 2018-04-04 13:30:15 +03:00
Johan Wikman
d375733580 Update Release Notes and ChangeLog
Also, the list of release notes have been removed from the upgrading
document. The referral to the ChangeLog remains. That way, the list
of release notes need not be maintained in several places.
2018-04-03 14:15:22 +03:00
Markus Mäkelä
de768469b9
Fix hanging of mxs1585
The test appears to hang when the `SET sql_log_bin = 0` statement is
executed. Removing this seems to fix it and is OK as that's not what the
test aims to check.
2018-03-27 11:50:30 +03:00
Markus Mäkelä
933a74a418
MXS-1739: Disable TLS session cache
Disabling the session cache prevents errors from being generated as the
default OpenSSL configuration is to enable session caching but with an
uninitialized context ID. In addition to preventing the errors, it
prevents the possible security problems implicated by the definition a
"static" context ID.
2018-03-27 07:23:46 +03:00
Markus Mäkelä
9b61947205
Attempt to install libasan for RPM systems
Attempting to install libasan allows CentOS 7 to be used with ASAN while
still allowing CentOS 6 to be built.
2018-03-27 07:23:45 +03:00
Timofey Turenko
830858a161 Fix build VM restore process
Moving 'mdbci destroy' bofere creating build.json to prevent
build.json from being deleted by 'destroy' command.
2018-03-22 12:02:44 +02:00
Johan Wikman
041b775150 MXS-1730 Add change that fixes the problem
ENGINE is a keyword but not a reserved word, so it must
silently convert into an identifier if it is used in a
context where it cannot be used as a keyword.
2018-03-21 13:25:06 +02:00
Johan Wikman
5be9a8d7f8 MXS-1730 Add test-case that reveals the problem 2018-03-21 13:25:06 +02:00
Johan Wikman
4413c0cec0 Update version to 2.1.16 2018-03-21 13:23:44 +02:00
Johan Wikman
cb3a6a0e11 Merge branch '2.1.15' into 2.1 2018-03-21 11:23:28 +02:00
Johan Wikman
dadfb68a70 Update 2.1.15 release date. 2018-03-21 11:17:58 +02:00
Markus Mäkelä
02368473f7
Fix failover_mysqlmon
The test should stop MaxScale when it is fixing the replication to prevent
the triggering of the standalone master detection.

Also removed leading spaces from the messages and fixed a possible crash with a
NULL value given to `ssh_node`.
2018-03-20 10:59:08 +02:00
Markus Mäkelä
64ccb67897
Mark crashing tests as failed
If a test generates a core dump, it is marked as a failure.
2018-03-20 10:59:08 +02:00
Johan Wikman
2dacd0c9a4 Add Changelog and Releasenotes to 2.1.15 2018-03-20 09:29:53 +02:00
Markus Mäkelä
2856b91077
Sync slaves before starting the test
Syncing the slaves should guarantee that the table exists on all servers.
2018-03-13 15:17:18 +02:00
Markus Mäkelä
a75ea27a96
Fix memory leak when backend authentication fails
If the backend authentication failed for a user, the buffer containing the
error packet would leak.
2018-03-13 14:32:38 +02:00
Markus Mäkelä
050e27685e
Add various build script documents
Added documents that were left over from the build scripts repo.
2018-03-13 11:37:10 +02:00
Johan Wikman
c5345d34ca MXS-1714 Use local_address also with MaxScale connections
If local address has been specified, then all connections created
using mxs_mysql_real_connect() will use that same local address as
well.

A system test has not been created as our VMs do not have more than
one usable IP-address. Locally it has been verified to work as
expected.
2018-03-12 11:35:46 +02:00
Markus Mäkelä
f54bbdf73b
Fix -Werror=format-truncation= warnings in blr_slave.c
The errors were caused by the fact that the server name
MAX_SERVER_NAME_LEN is 1024 bytes long whereas the buffer was 251 bytes.
2018-03-08 11:28:05 +02:00
Markus Mäkelä
69811d9b19
Cherry-pick: Enable optional use of ASAN
AdressSanitizer is a lightweight memory error detector that instruments at
compile time instead of at execution time. This allows serious memory
errors to be detected without the cost of slowing down the whole program
that often happens when Valgrind is used. It is also easier to enable for
test runs as it is a simple compiler flag.

This is a cherry-pick of fb9b027842a7b65c4826455cd34d88e2f5f28e79 from the
2.2 branch.
2018-03-08 11:28:05 +02:00
Johan Wikman
3d7bf5683e Update 2.1 version 2018-03-07 15:21:02 +02:00
Markus Mäkelä
d6319ec6ee
MXS-1697: Install pkg-config for Debian systems
The build scripts did not install the pkg-config package that the Avro-C
API depends on.
2018-03-07 10:43:07 +02:00
Markus Mäkelä
187cd2cb79
Make install scripts less verbose
We don't need to know the contents of the tarballs on each build.
2018-03-07 10:43:07 +02:00
Markus Mäkelä
7dc844c38a
Update Travis build script
The actual build scripts for MaxScale are now used to prepare the build
environment. This should make the Travis CI build easier to maintain.
2018-03-07 10:43:07 +02:00
Markus Mäkelä
82839abc38
Increase timeouts and add maxadmin output to mxs1476
Increasing the timeout should remove any issues with server lag and
printing the maxadmin output should help diagnose the problem if it still
fails.
2018-03-06 12:47:20 +02:00
Markus Mäkelä
b619fb0707
MXS-1699: Log progress messages at startup
When MaxScale is starting, the loading of the listeners can take a while
if there are a large number of services and users to load. To signal this
to the user, progress messages should be logged after every service is
started.
2018-03-06 12:47:20 +02:00
Johan Wikman
9144ed3448 Update 2.1.14 Release Date 2018-03-06 09:45:41 +02:00
Markus Mäkelä
a0c890cdf6
Add maxadmin output to mxs1678_relay_master
This should make test failure analysis easier.
2018-03-05 14:02:41 +02:00