Commit Graph

10473 Commits

Author SHA1 Message Date
02a65f311a Fix memory leak in cdc-connector
The Closer default value was wrong.
2018-08-27 12:00:28 +03:00
2c54f28fae MXS-2024: Validate COM_CHANGE_USER packet before use
The use of strcpy on data that is assumed to be null terminated causes
reads and writes past buffers.
2018-08-24 20:52:52 +03:00
13c7072da1 Separate CCRFFilter hints section from the main overview
The text changed subjects rather abruptly. Having the hint part of it
gives some context and appears to make the text flow nicer.
2018-08-23 23:52:42 +03:00
9799cfdb2b MXS-1735: Clarify differences between MaxScale and server
The server allows both unencrypted and encrypted connections on the same
port. MaxScale only allows either encrypted or unencrypted
connections. The differences as well as the reasoning for this need to be
documented.
2018-08-23 09:32:20 +03:00
69722a32ca Fix crash caused by wildcards in NamedServeFilter source parameter
Use the formated IP address instead of the one with wildcard symbols.
2018-08-22 22:46:46 +03:00
4480995089 MXS-1996: Remove misleading errors
The errors are expected if the file is empty.
2018-08-22 14:23:25 +03:00
9663c52f50 MXS-2015: Remove buffer iterator
The iterator to the buffer isn't really needed as the beginning of the
buffer can be used instead. This should make the code more robust. Changed
the internal buffer from a vector to a deque as the latter is more
appropriate for insertion on one end and consumption on the other.
2018-08-22 14:23:25 +03:00
c38dcff53c MXS-2019: Remove header and footer output
Now that the exit handlers work correctly, the output of `maxscale
--version` no longer consists of a single line but multiple lines in both
stdout and stderr. Removing the printing to stderr guarantees that the
correct output is produced.
2018-08-20 10:04:12 +03:00
57334153fe MXS-1880: Fix crash after restart
The offsets in the events were wrong if MaxScale was restarted in the
middle of a binlog. This was caused by the fact that the FDE event
contains information on binlog checksums which is required for a correct
interpretation of the binlog. The FDE event was only read when the binlog
was first opened when it needs to be read every time the binlog is opened.
2018-08-20 08:06:59 +03:00
fb9ffdc753 MXS-2015: Improve CDC connector error messages
The error messages now display the data received so far. This will help
resolve at which point the streaming process was when an error occurs.
2018-08-20 08:06:59 +03:00
d6ed10975e MXS-2015: Add missing newlines
The newlines were missing from a few of the avrorouter responses.
2018-08-20 08:06:59 +03:00
1c733bf450 MXS-2015: Always check for error responses
As a JSON object can never start with the ERR prefix, it is safe to check
it for all requests. Also fixed the missing newline in the avrorouter
error message.
2018-08-20 08:06:59 +03:00
0fbd789572 MXS-2019: Fix atexit handlers
The code now registers all functions once instead of one function multiple
times.
2018-08-17 17:35:41 +03:00
435963f2ed Merge branch '2.1' into 2.2 2018-08-15 17:32:35 +03:00
e644debdf7 Fix SLES 15 packaging
SLES 15 doesn't have any sort of init functions which is why the error is
converted to a status message. A dummy file that just prints an error is
placed into /etc/init.d/ to make it clear to the users that they should
use systemd to start MaxScale.
2018-08-15 17:28:15 +03:00
ab507ebfe9 Add missing timeouts to mxs1743_rconn_bitmask
Also did some minor cleanup.
2018-08-14 09:33:39 +03:00
f499b22a9e MXS-2007: Check for no rows
If the query returns no rows, a NULL row is returned.
2018-08-11 23:33:48 +03:00
66061be58b Remove duplicate REST API section
The listeners section was duplicated. Also fixed a typo.
2018-08-09 18:56:58 +03:00
646c22e384 remove repo.d generation from build and test scripts 2018-08-08 11:39:03 +03:00
f4c564481c Update version of 2.2 2018-08-08 11:19:13 +03:00
ebbd3b8312 Merge branch '2.2.13' into 2.2 2018-08-08 11:02:06 +03:00
8792a4a3d1 Update release date 2018-08-08 10:58:21 +03:00
7394f03cd9 Exit with failure if coredump is found in destructor
If the test would otherwise succeed but a coredump is found when the logs
are copied in the destructor, the test would pass. To prevent this, the
destructor should always exit with a non-zero status when it detects an
error.
2018-08-07 22:14:33 +03:00
055043b5b8 Fail faster in NPM tests
The test script now stops if the configuration or build steps fail.
2018-08-07 22:14:33 +03:00
446116a8bb MXS-1999: Fix removal of undefined relationships
If a relationship isn't defined, it should not be removed. Only if a
relationship is change to a null relationship, should it be removed.

Also fixed the maxctrl test suite to verify that both it and the REST API
tests pass.
2018-08-07 22:14:33 +03:00
4fd4d6bb01 MXS-1999: Fix null relationship handling
The data of the relationship should be set to null to delete the
relationship. Conceptually it is different from setting it to an empty
relationship but in practice both lead to the same end result.

Updated tests to use correct relationships and added test cases for
detection of invalid relationships.
2018-08-07 22:14:32 +03:00
3754008e43 Add missing cdc_connector dependencies
Added the missing dependency on Jansson to the CDC connector.
2018-08-07 22:14:32 +03:00
646efbc6be MXS-1736 Fix some typos in MaxScale-Information-Schema.md 2018-08-07 15:58:11 +03:00
974bf3c115 MXS-1736 Clarify MaxInfo tutorial 2018-08-07 12:59:11 +03:00
94994268bd MXS-1736 Wrap lines of MaxScale-Information-Schema.md
No other changes.
2018-08-07 11:17:05 +03:00
ec178fd8da MXS-1983 Add missing semicolon 2018-08-06 12:59:13 +03:00
05129540b4 Update change log and release notes 2018-08-06 12:10:12 +03:00
5b04e492c6 MXS-1983: Retry message posting
If the posting of a message to a message queue fails due to the queue
being full, it is retried for a limited number of times. This is a
temporary fix to the problem that fixing MXS-1948 introduced. A proper
solution that leverages SO_REUSEPORT should be implemented in the next
major release.
2018-08-03 23:29:25 +03:00
1f5e23c674 MXS-1997: Increase object name length limits
Updated the limits to 1023 characters and documented the old value.
2018-08-02 22:12:06 +03:00
a6afc7fcbd Update 2.2 version number
Updated version to 2.2.13 in preparation for the next release.
2018-07-31 22:53:11 +03:00
a91b054eb4 Fix out-of-source runs of mxs791_galera.sh
The test used the current directory instead of the source directory where
the script was located.
2018-07-31 22:53:10 +03:00
d501606399 Add clarification to mailing list email
The email should be sent after the binaries are visible and the KB has
been updated.
2018-07-27 20:03:48 +03:00
2f8ebf7ce0 Merge branch '2.2.12' into 2.2 2018-07-27 19:46:01 +03:00
90477f9081 Update release date 2018-07-27 19:45:28 +03:00
fc672dc56e Update release documentation
Removed old and meanlingless parts from emails, added symlink creation.
2018-07-27 19:32:47 +03:00
5612896b80 regenerate repo.d only for current target 2018-07-27 14:58:29 +03:00
d59917673d do not generate repo.d in run_test 2018-07-27 14:58:29 +03:00
d6be2cb70d fix typo in upgrade_test 2018-07-27 14:58:29 +03:00
81507349f3 remove reference to repo.d from upgrade_test 2018-07-27 14:58:29 +03:00
ba680b674d do not call mdbci repo config in build.sh and upgrade_test.sh 2018-07-27 14:58:29 +03:00
27e668a3cb Set test timeout to 900 seconds
Any test that takes longer than 15 minutes to run is too long and should
explicitly set a longer timeout.
2018-07-26 16:32:46 +03:00
571d52f557 Typo fix in logthrottling_test 2018-07-26 10:59:53 +03:00
4dc1638f78 Silence the -Wunused-result warning
-Wunused-result warning in test_logthrottling.cc was causing error when
trying to build MaxScale from source. This warning can be silenced with by
putting the function triggering the warning in if-clause.
2018-07-26 10:59:53 +03:00
e64e4bc34f Use the word REST API in documentation
The HTTP admin interface was ambiguous.
2018-07-26 10:59:53 +03:00
3243f741a0 MXS-1961 Standalone master loses master status when an alternative master emerges
Fixes the bug by requiring that only running slaves are considered when choosing a master.
2018-07-26 10:37:30 +03:00