d45915c279
Treat empty avro filenames as an error
...
If an empty filename is requested, treat it as an error.
2019-06-26 10:17:21 +03:00
01822490ca
Fix avrorouter and cluster usage
...
The servers defined by `cluster` wouldn't get used.
2019-06-26 10:17:21 +03:00
59e7b2b09d
Deprecate mqfilter
2019-06-26 10:08:15 +03:00
c8145f94c9
Merge branch '2.4.0' into 2.4
2019-06-26 09:51:23 +03:00
d41d4021a8
Merge branch '2.3' into 2.4.0
2019-06-26 09:20:35 +03:00
67d82146f1
Fix packet length assertion
...
The `used_len + len` can be the same as `total_len`.
2019-06-26 09:19:24 +03:00
88dae197b0
Make packet boundary assertion less costly
...
mxs::Buffer::iterator is not a random-access iterator and hence will have
linear cost. This is too costly to do on every packet with even moderately
sized resultsets.
2019-06-26 09:13:03 +03:00
ae18e454cc
Remove manual revision history from tests
2019-06-25 20:44:15 +03:00
d15582d26d
Allow posting to stopped workers
...
Due to there being no distinction between a temporarily stopped worker and
a permanently stopped one, we must allow posting of messages to stopped
workers.
2019-06-25 17:32:24 +03:00
28a2a726f8
Merge branch '2.4.0' into 2.4
2019-06-25 11:48:44 +03:00
f961bf1d96
Merge branch '2.3' into 2.4.0
2019-06-25 11:46:44 +03:00
7d10a71015
Fix broken Change Dates
...
Were not correct, so were not updated with all others.
2019-06-25 10:11:55 +03:00
0ba779d5a2
Update 2.4.0 Change Date
2019-06-25 10:11:55 +03:00
b8bb8702bd
Fix broken Change Dates
...
Were not correct, so were not updated with all others.
2019-06-25 09:52:42 +03:00
2ab9aa9a94
Update 2.4.0 Change Date
2019-06-25 09:19:55 +03:00
873ea92915
Assert that packet is inside the buffer
...
The buffer containing the response should contain only complete packets.
2019-06-25 09:05:49 +03:00
aac0ecc373
MXS-2574: Add PATCH for /users/inet endpoint
...
The alteration of user passwords is now done inside MaxScale. This
prevents the possibility of a user locking themselves out.
2019-06-25 08:23:17 +03:00
77671a2393
Also preload mariadbbackendauth
...
The backend protocols require it.
2019-06-24 22:46:27 +03:00
c1c376b7ac
MXS-2575: Fix REST-API error propagation
...
The errors are now correctly sent even with requests that upload data.
2019-06-24 15:15:47 +03:00
2f56264715
Preload mariadbbackend for unit tests
...
This should fix the failure of test_config2 and make server allocation
work.
2019-06-24 15:15:47 +03:00
a51e094cd5
Merge branch '2.2' into 2.3
2019-06-24 15:07:18 +03:00
7fb268f1a7
MXS-2575: Fix REST-API error propagation
...
The errors are now correctly sent even with requests that upload data.
2019-06-24 14:37:40 +03:00
24b575bb93
Print error if child process cannot access monitor script file
2019-06-24 12:22:25 +03:00
1cb13582ff
Fix worker state debug assertion
...
Stopped workers will receive messages.
2019-06-24 11:03:50 +03:00
9f771ffc2b
Revert "MXS-2513 Deprecate firewall and masking filters"
...
This reverts commit de3c5721e95d5d5be909a56faeb121ad09a2f6fe.
2019-06-24 10:21:01 +03:00
278c26cd54
Fix build failure
...
mxs::rtrim was renamed to mxb::rtrim.
2019-06-20 23:17:41 +03:00
0b67ce1e82
Merge branch '2.3' into develop
2019-06-20 14:36:48 +03:00
be429c2c57
MXS-2490: Always restore original statement ID
...
By always restoring the ID, we are guaranteed to only store the query in
the form that it was originally sent in. This should be changed so that
the ID that the client sends can be used as-is in the backends.
2019-06-20 14:27:04 +03:00
805be70a78
Add more information to rwsplit info messages
...
The statement ID for all binary protocol statements and the error given to
handleError are now logged.
2019-06-20 14:27:03 +03:00
20f595d978
Merge branch '2.3' into develop
2019-06-20 13:00:13 +03:00
301b1b63ab
MXS-2569: Always terminate schemas with newlines
...
If the stored file didn't have a newline in the schema, the schema and the
first row would be on the same line.
2019-06-20 12:32:30 +03:00
7673ee685d
Distinguish stopped and finished workers
...
By having a separate FINISHED state and a STOPPED state, it is possible to
know at which point in the worker's lifetime an event is done. Posting of
messages before a worker is started is allowed but posting them after the
worker has stopped is not.
This fixes avrorouter related failures and all other failures that stem
from worker messages being ignored at startup.
2019-06-20 12:32:30 +03:00
1fbb57f9b2
Check if socket server is MaxScale service
...
We need to handle the case that a MaxScale service is used as a
server over Unix domain sockets.
2019-06-20 11:05:00 +03:00
197d577aa1
Set correct replication lag state
...
The lag state was inverted.
2019-06-19 17:35:19 +03:00
5528a8e8fb
Merge branch '2.3' into develop
2019-06-19 17:27:57 +03:00
39df829384
Don't kick out super-users when performing rejoin
...
When rejoining a server, preventing writes is not as essential as in switchover.
2019-06-19 17:14:39 +03:00
2bd614ce8e
MXS-2566: Use connection counts more often
...
The connection counts are now always used to pick the best servers where
the initial connections are created. This covers both master and slaves
selection. Reconnections done while routing queries still pick the "best"
server according to the slave selection criteria. This allows better
servers to be taken into use when `lazy_connect` is enabled.
2019-06-19 16:12:28 +03:00
ef3136c5c9
MXS-2555 Fix split packet bug in smart session.
...
The test failed to notice that the split request session was left in a
bad state after the split query had (succesfully) finished.
2019-06-19 15:31:34 +03:00
6ba1c277be
MXS-2555 Fix a few TODOs and other cleanup
2019-06-19 15:31:34 +03:00
a950715176
MXS-2555 Implement cache eviction (or query re-measurment) strategy
2019-06-19 15:31:34 +03:00
f5615cc174
MXS-2555 Add support for unix sockets to LocalClient
2019-06-19 15:31:34 +03:00
f7d44835a7
MXS-2555 Use mxs_mysql_execute_kill_all_others in smartrouter
2019-06-19 15:31:34 +03:00
2343326ecc
MXS-2555 Add execute_kill version, that kills all but a given mysql_thread_id
...
NOTE: This does not work whit unix scokets. The reason is that LocalClient
assumes network sockets. TODO: to add unix socket support.
2019-06-19 15:31:34 +03:00
56e5c417c1
MXS-2555 uncrustify mysql_common.cc, and a minor bug fix in smartrouter.cc
2019-06-19 15:31:34 +03:00
6a7b6d4b89
MXS-2555 Beta Smart Router.
...
1. Remove persistence of performance data
2. Move global CanonicalPerformance into SmartRouter object
3. Implement another kill_all_others_v2. Left kill_all_others_v1
in case it should be fixed and used instead.
2019-06-19 15:31:34 +03:00
1241300494
MXS-2555 Simple Smart Router
...
Does the measurments, usage of the same and persistence to file.
Kill is not implemented, so waits for all clusters to fully responds
The performance data uses a mutex and the persistence data file
is written while holding the mutex. This obviously needs to be
improved, but this commit shows the working concept.
2019-06-19 15:31:34 +03:00
c47a2d32fa
Fix mxs1980_blr_galera_server_ids
...
A housekeeping task cannot be removed by name from within the
task function itself. Instead the function must simply return
false.
2019-06-19 15:27:09 +03:00
aeebf941f6
Merge branch '2.3' into develop
2019-06-19 13:28:58 +03:00
52b7c23998
Use correct parameter set for listeners
...
The listener JSON used server parameters.
2019-06-19 12:44:45 +03:00
3d8475f8ed
Merge branch '2.2' into 2.3
2019-06-19 12:37:23 +03:00