Commit Graph

14660 Commits

Author SHA1 Message Date
680ba80870 MXS-2900 maxtest includes cleanup, part 3 2020-06-23 13:23:02 +03:00
238725b72e MXS-2900 maxtest includes cleanup, part 2 2020-06-23 13:23:01 +03:00
9951d27762 MXS-2900 maxtest includes cleanup 2020-06-23 13:23:01 +03:00
31eade1a75 Merge branch '2.3' into 2.4 2020-06-18 11:58:38 +03:00
c2c0b4ef60 Merge branch '2.3' into 2.4 2020-06-18 11:43:01 +03:00
9fb5336615 MXS-2996 Fix classification of "SELECT ... LOCK IN SHARE MODE"
And also of "SELECT ... FOR SHARE"
2020-06-18 10:17:08 +03:00
1dd06c3ebc MXS-2996 Add test that reveals problem
SELECT * FROM test LOCK IN SHARE MODE
  SELECT * FROM test FOR SHARE

should be classified as QUERY_TYPE_WRITE.
2020-06-18 10:14:16 +03:00
3972e372ae MXS-3041 Fix 'SELECT handler FROM t FOR UPDATE'
Problem was that 'handler' is a keyword. To make it work,
the keyword must be listed as one of those that turns into
an id where it cannot be used as a keyword.
2020-06-18 08:40:22 +03:00
f96c8d3a97 MXS-3041 Add test that reveals problem 2020-06-18 08:35:33 +03:00
c8700a94ab MXS-2900 Cleanup maxtest compilation
The cdc-connector source does not need to be included, linking is enough.
2020-06-12 20:08:40 +03:00
63d1f66797 MXS-2900 Include from predefined search directories in maxtest
Similar style is used in other MaxScale libraries.
2020-06-12 19:26:47 +03:00
3c0021828c MXS-2900 Remove StopWatch from maxtest
Was similar to the one in maxbase. Also changes a variable name
inside a macro to less likely shadow one in surrounding scope.
2020-06-12 19:26:02 +03:00
a4a7a52150 Merge branch '2.4.10' into 2.4 2020-06-08 11:40:41 +03:00
5793c53916 2.4 Bump maintenance release 2020-06-08 11:40:09 +03:00
8799bbbb95 2.4.10 Update release date 2020-06-08 10:50:32 +03:00
098ffde13c Remove obsolete debug assert from PamAuth
Would be always hit in debug mode.
2020-06-05 19:04:44 +03:00
7781f7042a 2.4.10 Update change date 2020-06-05 10:21:37 +03:00
a1a4834182 2.4.10 Add release notes and update change log 2020-06-05 10:11:26 +03:00
5ebae9be90 Merge branch '2.3' into 2.4 2020-06-05 09:36:24 +03:00
d78aa39765 Update release date 2020-06-05 09:31:45 +03:00
ddb4064563 Fix typo in documentation 2020-06-05 09:31:45 +03:00
aa11c960b1 2.3.20 Update change date 2020-06-05 09:31:45 +03:00
dcf0442127 2.3.20 Add release notes and update change log 2020-06-05 09:31:44 +03:00
00e5cbf51c Merge branch '2.3' into 2.4 2020-06-05 08:36:07 +03:00
d025f5123e MXS-3023: Fix ID generator overflow
The result must always be non-negative.
2020-06-04 15:31:17 +03:00
a8c8531bbc MXS-3021: Add test case for strict
Checks that multi-statements are allowed and that rules that match still
cause queries to be blocked.
2020-06-04 08:28:32 +03:00
da5af75c1c MXS-3021: Make strictness of dbfwfilter configurable
In some cases the dbfwfilter is too strict and SQL that would not match a
rule is blocked due to it not being fully parsed. To allow a more lenient
mode of operation, the requirement for full parsing must be made
configurable.
2020-06-04 08:28:23 +03:00
ac1e2d4202 Merge branch '2.3' into 2.4 2020-06-03 10:40:24 +03:00
5380bd65f1 Detect dropped system tables
If a test breaks the system by dropping a system database, the replication
check wouldn't detect it.
2020-06-03 10:39:36 +03:00
f74035dc63 MXS-3017 Fix MariaDBMonitor documentation
The descriptions of several settings were not updated for 2.4.
2020-06-02 11:16:17 +03:00
727aeb4a08 Merge branch '2.3' into 2.4 2020-06-02 10:53:05 +03:00
8f3a1228e6 2.3 Update maintenance release number 2020-06-02 10:50:30 +03:00
cb8b4546cb Don't use client SHA1 for fake responses
When a fake handshake response is generated for a connection that hasn't
received the server's handshake, the client's SHA1 would be used with a
static scramble. This, in theory, would weaken the authentication to some
extend so to completely prevent this, a null password is used. This
removes any possibility of the password being exposed.
2020-06-02 10:17:40 +03:00
11960a1e93 Document transaction_replay_max_size inner workings
The documentation didn't explain how to estimate how much memory a
transaction takes and whether it was a global limit or a per session
limit.
2020-06-02 10:17:39 +03:00
922630f76f MXS-3019: Fix enum value validation
Also added a test case that reproduces the problem and verifies that it is
fixed.
2020-06-01 20:36:59 +03:00
65bfda445d MXS-3013: Document /v1/services/:service/reload 2020-06-01 19:40:49 +03:00
3ef1410f52 MXS-3013: Regenerate MaxCtrl documentation 2020-06-01 12:26:29 +03:00
4ee7dc7972 Reword --quiet description 2020-06-01 12:26:29 +03:00
d9fdf3adc1 MXS-3013: Add reload service MaxCtrl command
The command currently reloads the users of a service but it can be used to
reload other parts of it as well (e.g. encryption keys).
2020-06-01 12:26:29 +03:00
f013d3ccd9 MXS-3013: Add reload endpoint for services
The endpoint reloads the database users. This can also be used in the
future to refresh encrypted credentials when they are no longer loaded
every time an encrypted password is used.
2020-06-01 12:26:29 +03:00
2e1b0c5ddf MXS-2984: Fix list listeners
Backported the changed from 2.5 to 2.3 and added a test case.
2020-06-01 12:26:26 +03:00
ce437bc779 MXS-3016: Rename --monitors to --monitor
Renamed the option and changed the type to a string argument. The alias
for --monitors still allows old code to use the same format.
2020-06-01 12:26:26 +03:00
0f1f9426c3 MXS-2983: Document list option formats
The options that take lists of objects as arguments did not properly
document the expected format.
2020-06-01 12:26:26 +03:00
c3dff9c60c MXS-3014: Add missing global parameters to REST API
A few global parameters weren't included in the list of parameters. A few
non-parameter values that were in the parameter object were moved out into
the attributes object. Sorted the parameter alphabetically.
2020-05-29 08:32:39 +03:00
e565a6d9b8 Merge branch '2.3' into 2.4 2020-05-28 09:01:49 +03:00
0907e0f0e5 Add BACKEND_SSL VM type
This is needed by tests that use add_test_executable_ex and require
backend SSL. Also fixed a problem in disable_ssl where an empty query was
executed instead of the query itself.
2020-05-27 14:06:51 +03:00
e2642d64b9 MXS-3010: Fix maxkeys and the test
The test doesn't work properly if the maxscale user doesn't exist and the
key file permissions cannot be given to it. The test should use the
current user as the owner of the file but it turned out that the -u option
is broken.

Extended the test case to make sure the same password with the same
encryption key results in the same hash.
2020-05-25 19:45:33 +03:00
6cc16ac16b Document idle session behavior with fail_on_write
The behavior is not very obvious. To prevent excessive numbers of idle
sessions, a idle timeout should be configured.
2020-05-25 10:27:52 +03:00
265a0cb449 MXS-3000: Serialize all global parameters
Not all parameters were serialized to disk.
2020-05-25 10:27:52 +03:00
c211bf1a21 Remove old VERSION.cmake files 2020-05-25 09:06:43 +03:00