13265 Commits

Author SHA1 Message Date
Markus Mäkelä
22a112e137
Remove redundant ExecStartPost command
The LimitCORE command already sets the process core size limit so the
post-start command appears to be useless. In addition, it appears to fail
from time to time due to pidof failing to return the process ID of
MaxScale right as it starts. This in turn results in an unexplainable
failure to start with no messages logged anywhere with the exception of
the following from systemctl:

[vagrant@maxscale build]$ sudo systemctl status maxscale
● maxscale.service - MariaDB MaxScale Database Proxy
   Loaded: loaded (/usr/lib/systemd/system/maxscale.service; disabled; vendor preset: disabled)
   Active: failed (Result: exit-code) since Wed 2020-12-16 21:16:55 CET; 26s ago
  Process: 304024 ExecStartPost=/bin/sh -c prlimit -p $(pidof maxscale) --core=unlimited (code=exited, status=1/FAILURE)
  Process: 304003 ExecStart=/usr/bin/maxscale (code=exited, status=0/SUCCESS)
  Process: 304001 ExecStartPre=/usr/bin/install -d /var/lib/maxscale -o maxscale -g maxscale (code=exited, status=0/SUCCESS)
  Process: 303999 ExecStartPre=/usr/bin/install -d /var/run/maxscale -o maxscale -g maxscale (code=exited, status=0/SUCCESS)
 Main PID: 304004 (code=exited, status=0/SUCCESS)
2020-12-16 22:35:38 +02:00
Markus Mäkelä
85ea8174c4
Add a link to upgrading document to release notes 2020-12-16 15:16:28 +02:00
Johan Wikman
2b8d5076e2 MXS-3318 Fix problem
When the tokenizer encounters a keyword, it sniffs whether the
last non-whitespace character before it happens to be a '.' and
if it is, the keyword is assumed to be the second part of a
qualified name.

Thus, before this commit

    -- blah.
    UPDATE ...

would not be parsed as KEYWORD (UPDATE) followed by stuff, but as
an ID (blah.UPDATE) followed by stuff.

With this change, newlines are no longer counted as whitespace.
2020-12-15 17:02:34 +02:00
Johan Wikman
9481abb42d MXS-3318 Translate newlines in stmts given to compare
A \n encounted in a string given to the query classifier test
program compare, is not converted into a newline. Makes it easier
to debug problems related to newlines.
2020-12-15 17:02:34 +02:00
Markus Mäkelä
d869dd358e
MXS-3337: Select lowercase variable names
The current code assumes that the variable names are in lowercase. This
fixes the galera monitoring that was broken by commit
43068d20b43a34d5f3b4b4db0fcce701b3cd7cad. In addition, lowercase names
also helps when comparisons are done with std::string.
2020-12-11 18:37:05 +02:00
Markus Mäkelä
43068d20b4
MXS-3337: Fix galeramon query
The query now properly queries over both the status and the variables.
2020-12-10 11:56:07 +02:00
Markus Mäkelä
4a2831e731
Clarify transaction_replay documentation
The parameter controls three other parameters and overrides their
configured values.
2020-12-09 12:24:27 +02:00
Timofey Turenko
f9be1d9cb4 test_bad_config() return 1 when ssh result is 256 2020-12-07 22:15:09 +02:00
Timofey Turenko
65261c8eeb Merge branch '2.3' of github.com:mariadb-corporation/MaxScale into 2.3 2020-12-07 22:12:12 +02:00
Timofey Turenko
f0ac65ffb5 Fails system-test if they are not executed properly
In case of VM creation problem or test code build problem
run_test.sh and run_test_vm.sh exit with 1 to show the problem
in the BuildBot
2020-12-07 22:10:17 +02:00
Timofey Turenko
7a26207564 Fix typo 2020-12-07 13:46:18 +02:00
Timofey Turenko
347468e87d config_test should fail also if VM is broken
config_test expects Maxscale start failure, but ssh to
Maxscale node also fails if VM is broken.
Test should fail in case of VM problem to prevent
Maxscale problem hiding.
2020-12-07 13:24:41 +02:00
Markus Mäkelä
74a2ae727e
Fix REST API startup error
The error generated by the library seems to use the port argument even if
a sockaddr argument is given.
2020-12-01 09:58:58 +02:00
Markus Mäkelä
0e69cd6e4a
Add link to common monitor parameters
There was no link to the common monitor parameters in the main
configuration document.
2020-12-01 06:32:22 +02:00
Timofey Turenko
5c34c0f202 use stop/start_node() to restart server 2020-11-30 16:23:49 +02:00
Timofey Turenko
46c3755678 add server restart to prepare_servers() 2020-11-30 16:17:33 +02:00
Markus Mäkelä
080232e7ef
MXS-3245: Document REST API responses 2020-11-30 11:27:48 +02:00
Timofey Turenko
41caccbf4b Separate MariaDB installation and Galera configuration
MDBCI now supports separate Galera server .cnf configuring.
Changing MDBCI config template in order to use this MDBCI
capability. It allows to use any MariaDB product in the
backend (Community or Enterprise, production, staging or CI)
2020-11-18 19:12:24 +02:00
DmitriyKarpovskiy1
4300f1d80e
Add a check for the existence of the LastTestsFailed.log file to rest… (#213)
Remove rerun failed tests
2020-11-18 15:35:42 +02:00
Timofey Turenko
ed3e1ac2ec use MDBCI to install Kerberos 2020-11-18 15:33:57 +02:00
Markus Mäkelä
f577d09829
MXS-3297: Don't advertise unsupported capabilities
Only bulk execute is supported. Supporting progress reporting currently
breaks the protocol result processing code.
2020-11-17 10:45:03 +02:00
Markus Mäkelä
4545b8f798
Fix division by zero
If the query failed instantly it would crash the test.
2020-11-17 10:08:15 +02:00
Markus Mäkelä
558bd9279b
Use same script for both SSL and non-SSL users 2020-11-16 16:54:37 +02:00
Markus Mäkelä
43c53e2f79
MXS-3297: Fix reading of extended MariaDB capabilities
The byte offset didn't take the size of the charset into account.
2020-11-16 09:20:51 +02:00
Markus Mäkelä
9dd736d4eb
MXS-3245: Document /v1/maxscale/ REST API responses 2020-11-16 09:20:51 +02:00
Markus Mäkelä
c49f17f428
MXS-3295: Fix layout of the classify endpoint
The values were stored in the parameters object which is used for
configuration parameters in other endpoints. The proper place for them is
inside the attributes object.
2020-11-16 09:20:50 +02:00
Markus Mäkelä
e685741642
Configure SSL before starting MaxScale
This makes sure that the servers are correctly configured before MaxScale
sees them.
2020-11-11 11:22:59 +02:00
Markus Mäkelä
7b1625d65f
MXS-3272: Ask password first
The interactive would give the prompt first before asking for the
password. By copying the code from common.js, the password is always asked
first.
2020-11-09 17:33:34 +02:00
Markus Mäkelä
46dab1e884
MXS-3259: Add default connection timeout
The connector never times out if one is not defined. This seems to help
make the mxs1985_kill_hang test a lot more stable.
2020-10-29 15:12:49 +02:00
Markus Mäkelä
ca1db89994
MXS-3259: Increase connection limits
Lowering max_connections to 10 prevented the test system itself from
connecting to it. The replication slaves count towards max_connections and
with up to 15 connections in the test, the limit should be higher.
2020-10-29 15:12:49 +02:00
Johan Wikman
d45eb051bf MXS-3249 Remove spaces from object names 2020-10-27 16:09:41 +02:00
Johan Wikman
e522bce80f MXS-3249 Fix mysqltest tests
To avouid failures caused by default MariaDB configuration files
containing entries incompatible with mysqltest, mysqltest is
invoked with the glah --no-defaults, which will cause it *not* to
read any configuration files.
2020-10-27 13:57:34 +02:00
Markus Mäkelä
aa5a63be14
Fix debug argument concatenation
The buffer was shorter than the arguments given to it which caused a heap
buffer overflow.
2020-10-23 10:53:26 +03:00
Markus Mäkelä
48ef9754df
MXS-3241: Check buffer length
The `is_set` call assumes that at least three characters are present.
2020-10-16 12:22:06 +03:00
DmitriyKarpovskiy1
8a5fd27327
Add the force flag for the mdbci destroy command (#211) 2020-10-08 15:25:21 +03:00
Markus Mäkelä
f922ddcc1c
MXS-3207: Document dbfwfilter user addresses
The fact that "partial" wildcards aren't supported wasn't clearly
documented.
2020-10-05 10:27:16 +03:00
Markus Mäkelä
6129f588a1
Don't parse COM_STMT_EXECUTE packets
The function information is only available for COM_QUERY packets.
2020-09-15 17:55:56 +03:00
Johan Wikman
5fccce5bb4 MXS-3177 Fix download link 2020-09-14 08:24:07 +03:00
Johan Wikman
537a9b41fc MXS-3165 Fix cache documentation
The parameter is cache_in_transactions, not
cache_inside_transactions.
2020-09-09 11:01:52 +03:00
Timofey Turenko
edb215619d Remove MAXSCALE_BUILD_NUMBER from debian version 2020-09-08 09:22:58 +03:00
Timofey Turenko
ea1d7ba33b Fix CPACK_DEBIAN_PACKAGE_RELEASE field 2020-09-07 15:48:11 +03:00
Timofey Turenko
caaf36a279 Add MAXSCALE_BUILD_NUMBER to the debian/control version 2020-09-07 14:47:54 +03:00
Esa Korhonen
b210dcc4b8 Cleanup install_build_deps script
No longer installs pcre2, which is built from source later on.
CMake is only installed if a recent version (3.16) is not found.
Jansson install cannot be removed yet as the Avro build requires
it.
2020-09-01 10:41:15 +03:00
Markus Mäkelä
c8983886f2
Use TLS with the Connection class
This fixes the problem where an encrypted connection would not be created
even though the option for it was there. Also made it configurable outside
of the constructor to make it easier to use in tests.
2020-08-31 10:15:48 +03:00
Markus Mäkelä
724074a178
Update REST API tutorial
The relationship deletion in it was not done correctly.
2020-08-29 13:20:20 +03:00
Markus Mäkelä
63a050bd7a
MXS-3051: Show connection TLS cipher
This tells the user whether a session is using TLS or not. Currently, only
the client TLS cipher is shown in MaxCtrl as the backend ciphers require
additional formatting.
2020-08-28 12:16:17 +03:00
Markus Mäkelä
ebdb9655e6
MXS-3143: Route FOUND_ROWS to last used target
This will cause the query to be routed to the same server where a possible
SQL_CALC_FOUND_ROWS was executed.
2020-08-28 11:49:07 +03:00
Markus Mäkelä
24d6a582c2
MXS-3123: Use maxctrl in Administration Tutorial
As maxadmin is deprecated, it is better to use maxctrl for all commands
and remove any references to maxadmin.
2020-08-27 14:47:27 +03:00
Markus Mäkelä
4dd760aa9a
MXS-3131: Display monitor module in show monitor 2020-08-27 14:47:27 +03:00
Markus Mäkelä
dbe94e2dbe
MXS-3132: Fix monitor timeouts default values
The values are now what the documentation states they are.
2020-08-27 14:47:27 +03:00