Markus Mäkelä
5b45796da4
Add missing maxctrl test cases
...
Code coverage revealed that some parts of the code could be easily
tested. Added these missing test cases and removed some dead code.
2020-03-05 21:13:39 +02:00
Markus Mäkelä
68c070c2c4
Update maxctrl packages
...
Updated packages to fix vulnerabilities reported by npm. The yargs package
was not updated as it introduces changes that aren't backwards compatible.
2020-03-05 21:13:39 +02:00
Markus Mäkelä
9eceeffc04
MXS-2811: Set TLS version with MARIADB_OPT_TLS_VERSION
...
The ssl_version values now also affect the TLS version used by the
connector.
2020-03-05 21:13:38 +02:00
Esa Korhonen
fda12c0cb2
Merge branch '2.3' into 2.4
2020-03-05 15:00:37 +02:00
Markus Mäkelä
6aab4ed416
MXS-2893: Fix parameter validation
...
The code assumed all parameters were string values. Encasing the code in a
try-catch block solves it.
2020-03-05 09:06:36 +02:00
Markus Mäkelä
1bf46fadf6
MXS-2891: Log password hash on mismatch
...
By logging the password hash when user authentication fails due to a
password mismatch, we can be certain what the client sent and what is the
currently stored value in MaxScale. This should not be on by default which
is why a new parameter is required.
2020-03-04 17:11:34 +02:00
Esa Korhonen
4a2d3dc55b
MXS-2914 Link to pcre2 syntax page instead of API page
...
More appropriate link.
2020-03-04 16:38:18 +02:00
Johan Wikman
0aae500577
MXS-2898 Classify @@last_insert_id() and last_insert_id() identically
...
With this change, both 'SET @my_id = (SELECT LAST_INSERT_ID())' and
'SET @my_id = (SELECT @@LAST_INSERT_ID)' are classified as
QUERY_TYPE_MASTER_READ|QUERY_TYPE_SESSION_WRITE|QUERY_TYPE_USERVAR_WRITE
Earlier @@last_insert_id had the QUERY_TYPE_READ bit set as well, which
indirectly caused the problems of MXS-2898.
2020-03-04 13:18:09 +02:00
Johan Wikman
4c2909e86c
MXS-2227 Fix problem, parse OPTIMIZE statements
...
OPTIMIZE [NO_WRITE_TO_BINLOG | LOCAL] TABLE
tbl_name [, tbl_name] ...
[WAIT n | NOWAIT]
2020-03-04 13:10:46 +02:00
Johan Wikman
3df8429db3
MXS-2227 Add test that reveals problem
2020-03-04 13:10:46 +02:00
Markus Mäkelä
fda3cf8160
Merge branch '2.3' into 2.4
2020-03-04 09:10:28 +02:00
Markus Mäkelä
61fc3d8a42
MXS-2907: Fix logrotate script
...
The SIGUSR1 isn't sent if the PID file is not found as that means MaxScale
is not running.
2020-03-04 09:07:50 +02:00
Markus Mäkelä
2f6d003491
MXS-2832: Document failover timing estimates
...
The worst-case time it takes for failover to start is now documented.
2020-03-04 08:49:03 +02:00
Johan Wikman
ee8e43f26b
MXS-2508 Fix problem
...
DIV and MOD are now also accepted instead of / and % respectively.
MOD is a keyword but (in principle incorrectly) decays into an id
when used in some other context. That is so that it will be
parser by the general function rule ("id ( ... )"). If used
incorrectly, the server will later reject.
2020-03-03 11:30:58 +02:00
Johan Wikman
be3be3bf99
MXS-2508 Add test that reveals problem
2020-03-03 11:30:58 +02:00
Johan Wikman
f66d7ca838
MXS-2508 Fix qc_mysqlembedded
...
It appears that the function db_my_assert may be used but not
built into the library.
With 10.4.12 there seem to occasionally be superfluous empty
table names.
2020-03-03 11:30:58 +02:00
Markus Mäkelä
4a5293ebba
Merge branch '2.3' into 2.4
2020-03-02 18:05:11 +02:00
Markus Mäkelä
e2e220de66
MXS-2726: Document ccrfilter default behavior
...
Added an explicit mention of the way the filter works.
2020-03-02 17:30:11 +02:00
Markus Mäkelä
b23edeb111
MXS-2832: Document failover timing estimates
...
The worst-case time it takes for failover to start is now documented.
2020-03-02 17:30:11 +02:00
Markus Mäkelä
b7d0be97ab
MXS-2211: Auto-generate TOC
...
The link no longer works as the section has been removed. Auto-generating
the TOC solves this.
2020-03-02 17:30:10 +02:00
Markus Mäkelä
207882defb
MXS-2277: Document script limitations
...
The script should not interact with the administrative interfaces of
MaxScale.
2020-03-02 17:30:10 +02:00
Markus Mäkelä
67fee60f80
Fix Auth Error server status
...
The mon_ping_or_connect_to_db resets the MYSQL handle which caused the
loss of the error message. Returning a new enumeration value for
authentication errors solves this problem.
2020-03-02 16:32:35 +02:00
Esa Korhonen
84f091987b
Merge branch '2.3' into 2.4
2020-03-02 14:19:27 +02:00
Markus Mäkelä
4e5d9099ed
Merge commit 'e180c200555576cc1f9bfc77342abba422934e4a' into 2.4
2020-03-02 12:51:57 +02:00
Esa Korhonen
96ba2da40c
MXS-2900 Move testcore library files to a dedicated directory
...
The library is now named "maxtest". The related include-files are, for
now, usable without designating the full include path. This may be changed
later, but would require modifying every test.
2020-03-02 11:17:30 +02:00
Markus Mäkelä
e180c20055
MXS-2899: Update charset only when successful
...
By updating the server charset only when we successfully query it, the
charset will not change due to network connectivity problems.
2020-02-27 14:18:51 +02:00
Markus Mäkelä
9ca2c7f777
Merge branch '2.3' into 2.4
2020-02-24 14:10:19 +02:00
Markus Mäkelä
0614a44a4d
Add monitor TLS test case
...
Added a test that verifies the server state is Down when the backend
doesn't support TLS.
2020-02-24 12:02:50 +02:00
Markus Mäkelä
b241f7ed2a
MXS-2896: Fix monitor connection creation
...
The connection is now correctly null after a failed attempt to connect.
2020-02-24 12:02:50 +02:00
Markus Mäkelä
13658fe23e
MXS-2810: Fix CentOS 6 regression
...
MaxScale wasn't stopped if the system didn't use systemd.
2020-02-24 12:02:50 +02:00
Markus Mäkelä
19030bed35
Merge branch '2.3' into 2.4
2020-02-19 19:25:40 +02:00
Markus Mäkelä
61050ed125
Fix Avro C API link
...
The old link is dead.
2020-02-19 19:24:39 +02:00
Markus Mäkelä
c1fc7bd742
Document avrorouter diagnostic output
2020-02-18 14:26:29 +02:00
Markus Mäkelä
be508fe5d9
MXS-2873: Document more router diagnostics
...
Documented readconnroute and schemarouter router diagnostics. The
duplicated fields that are already in the general service diagnostic
output are not documented with the hopes that they can be eventually
removed.
2020-02-18 09:45:02 +02:00
Markus Mäkelä
2bc2ab2196
MXS-2873: Document readwritesplit router diagnostics
...
The REST API output is now documented in the router documentation. The
same will be done for other routers as well.
2020-02-18 09:23:13 +02:00
Markus Mäkelä
cb96725a51
MXS-2382: Add TLS setup into server tutorial
...
Given the recent fixes to the TLS configuration, the process of enabling
TLS is rather simple.
2020-02-17 20:15:43 +02:00
Markus Mäkelä
405b10ad50
Fix server TLS regression
...
The code in 2.3 was changed to allow "empty" SSL definitions now that the
system CA is used. The code in 2.4 did not allow this which caused non-TLS
connections to be created when only ssl=true was defined.
2020-02-17 20:03:35 +02:00
Markus Mäkelä
5842242e94
Fix debug assert on SSL with system CA
...
The debug assertion was not updated in the merge.
2020-02-17 20:03:35 +02:00
Markus Mäkelä
912cb711e3
MXS-2844: Fix binlogrouter destruction
...
Binlogrouter services can now be destroyed at runtime.
2020-02-14 08:55:48 +02:00
Johan Wikman
a09f291249
Merge branch '2.4.7' into 2.4
2020-02-13 14:51:04 +02:00
Johan Wikman
ef659b94a6
Update 2.4.7 release date
2020-02-13 14:39:45 +02:00
Johan Wikman
72e18dccde
Update 2.4 maintenance version
2020-02-12 15:30:38 +02:00
Johan Wikman
f576680ed9
Update 2.4.7 change date
...
Only the files that were not already updated as part of the
2.3.17 release.
2020-02-12 15:21:44 +02:00
Johan Wikman
5cd2254872
Create 2.4.7 release notes and update change log
2020-02-12 15:17:19 +02:00
Markus Mäkelä
fec1698db5
MXS-2889: Fix Replicator hang on shutdown
...
If a connection to the servers cannot be made, the replicator thread would
never exit.
2020-02-12 13:33:27 +02:00
Markus Mäkelä
3fc20d4345
MXS-2822: Use both last_write and last_read
...
The code relied on last_read for the idle time calculation which caused
the pings that were written to not reset the idle time. This increased the
chance of multiple COM_PING packets being sent to a backend before a reply
was received.
2020-02-12 13:33:27 +02:00
Johan Wikman
8b763fb88b
Merge branch '2.3' into 2.4
2020-02-12 08:27:48 +02:00
Johan Wikman
919686f7ad
Merge branch '2.3.17' into 2.3
2020-02-12 08:22:59 +02:00
Johan Wikman
81e2306811
Update 2.3.17 release date
2020-02-12 08:20:15 +02:00
Johan Wikman
853a83a794
Update 2.3 maintenance version
2020-02-12 08:17:55 +02:00