5576 Commits

Author SHA1 Message Date
Markus Makela
25f4238231 Merge branch '1.2.1-binlog_router_trx' into release-1.4.2 2016-04-14 18:52:36 +03:00
Markus Makela
edb1c18e83 Added missing check for error packets
A missing else branch caused the binlogrouter to crash when it
requests non-existent binlog file.
2016-04-14 17:51:42 +03:00
Markus Makela
bb2d549a00 Slaves that are behind the master no longer cause an error to be logged
When a slave transitions from catchup mode to up-to-date mode, an error
message is logged because the slave is at an unexpected position. This
error message should not be logged because it is a possible and an expected
situation.
2016-04-14 12:01:02 +03:00
Markus Makela
6988c0bfed Fixed rotate events never being distributed
The check for rotate event conditions was wrong which led to false error
message about unexpected binlog file and position combinations.

The position of the last event was reset every time a file was opened which
caused problems when the binlog file was rotated. The slave's current positions
were compared to the position where the last event started and because the
last_event_pos variable didn't point to the rotate event of the previous binlog,
the slave's never got the rotate event.
2016-04-14 11:02:03 +03:00
Markus Makela
440bc049c0 Added more information to binlogrouter error messages
The name of the binlog file was added to the log message where a slave
is behind the master but the same file is used. This makes debugging the problem
a bit easier.
2016-04-14 11:02:03 +03:00
Markus Makela
df9f8eba82 Improved binlogrouter event distribution error messages
Added master position and current safe event to log messages about unexpected
slave binlog file positions.
2016-04-14 11:02:03 +03:00
MassimilianoPinto
335b1e095f Added master pos to log message
Added master pos to log message
2016-04-14 11:02:03 +03:00
Markus Makela
52ef8987cb Made sending of events more strict
The decision to send an event to a slave can now only be made in one place.
This will force all events to pass the same checks before they are sent to
the slaves.
2016-04-14 11:02:03 +03:00
Markus Makela
aa7e3461c8 Fixed event position updating
The position of the next event to be written was used as the position
of the current event. This caused the checks for the position of the current
safe event to fail and the non-transaction safe version was used.

This only happened with events that are not done inside a transaction i.e.
DDL statements.
2016-04-14 11:02:03 +03:00
Markus Makela
cf62ac0e6c Added more information to the incomplete transaction error message
The error message now logs the caller role, current safe event and the event
type.
2016-04-14 11:02:01 +03:00
Markus Makela
fe84f9599b Removed messages about incomplete transaction events
The message is logged when a DDL statement is executed. It should not be
logged if trx_safe is on since the current_safe_event should always point
at the event we are sending. The current_safe_event is set to the wrong value
which causes this message to be logged.

Due to the false positives caused by this, the message is removed.
2016-04-07 12:51:38 +03:00
Markus Makela
bb94ffb9ea Added more information to duplicate event error message
The message now states the location where it was called from and the amount
of events received from the master. In addition to this, new logging was
added when unsafe events are sent to slaves when transaction safety is enabled.
2016-04-06 17:30:25 +03:00
Markus Makela
0ce48474eb Added logging for safe event and current event mismatch
If the position being currently processed is not the current safe event,
a log message is written.
2016-04-05 16:57:39 +03:00
Markus Makela
ed9356562c Added DCB write queue to error message
The duplicate event error message now logs the length of the slave's
write queue. This will tell how much data is still buffered inside MaxScale
when duplicate events are detected.
2016-04-05 15:01:30 +03:00
Johan Wikman
0493196ecc Disconnect slave if duplicate event detected
If a duplicate event is detected the state of the slave is set
to BLRS_ERRORED and the connection is closed. That way the
duplicate event will not break the slave, and it will pick
up its state when it reconnects.
2016-03-31 10:57:23 +03:00
Johan Wikman
51e60000dd Add duplicate event detection & logging.
When an event is sent to a slave, we store information about the
event and who sent it, so that we can detect if the same event is
sent twice. If a duplicate event is detected, we log information
about it.
2016-03-31 10:50:47 +03:00
Markus Makela
5219e94af7 Removed beta from MaxScale version string
MaxScale 1.4.1 is a GA release.
2016-03-29 09:38:38 +03:00
Markus Makela
89e71717c9 Added a note about PCRE2 in the dbfwfilter documentation
The syntax of the regular expression was not clearly stated.
2016-03-24 09:43:50 +02:00
Johan Wikman
74df62f352 Update 1.4.1 Upgrading 2016-03-23 19:07:25 +02:00
Johan Wikman
57301af9ce Add 1.4.1 ChangeLog 2016-03-23 19:02:47 +02:00
Johan Wikman
7c5c365a84 Add 1.4.1 release notes 2016-03-23 17:45:30 +02:00
Johan Wikman
d85598d342 Update VERSION 2016-03-23 14:16:28 +02:00
Markus Makela
3c8bba26c9 MXS-646: Namedserverfilter ignores user and source
The namedserverfilter did not check if it was active for the session
before adding a routing hint to it.
2016-03-23 14:00:55 +02:00
Markus Makela
80807097b1 Added notes about default values to ReadWriteSplit documentation
Not all default values were stated.
2016-03-23 14:00:55 +02:00
Markus Makela
4defd5df74 Added missing default value documentation.
The auth_*_timeout value defaults were not documented.
2016-03-23 09:46:54 +02:00
Johan Wikman
8ced59c48e Merge commit 'd5af608fe58ff9ed8f77021424708ae8a71fc53c' into release-1.4.1
Pulled updates from MaxScale-Documentation.
2016-03-23 09:44:34 +02:00
Markus Makela
e445bb981e Added missing check for SELECT privilege on mysql.tables_priv
The service permission checks did not check for SELECT privileges on
mysql.tables_priv which caused confusing error messages. The database
grant erros also did not log the MySQL error message which is often very
helpful when resolving permission errors.
2016-03-22 08:08:46 +02:00
Markus Makela
d71d088c00 MXS-630: Added missing tables_priv documentation
The new requirements were not documented in the upgrading document.
2016-03-21 21:45:33 +02:00
Markus Makela
f0e6748949 Added missing pathname prefix
The postinst script was looking for Nagios files in the wrong directory.
2016-03-21 16:28:20 +02:00
Markus Makela
19016f4a9b Removed false debug assertion in readwritesplit
The readwritesplit assumed that the execution of a session command would
always succeed. This is not the case when a write to the backend server
fails and it is not something that shouldn't happen.
2016-03-21 14:04:13 +02:00
Markus Makela
dfa50f4f95 Set version to 1.4.1
Version number incremented to 1.4.1.
2016-03-21 13:27:19 +02:00
Markus Makela
5f1b46d298 Fixed RPM dependencies
The RPMs depended on Perl due to the Nagios scripts that are installed.
This dependency is not needed and should be managed by some other means.
2016-03-21 10:42:12 +02:00
Markus Makela
d5af608fe5 Added missing links
The SSL and maxbinlogcheck documents were not linked to in the documentation
contents.
2016-03-18 18:35:33 +02:00
Markus Makela
e53f4d062b Combined RabbitMQ consumer documentation into one
The README was in another folder and was not in Markdown format.
2016-03-18 17:32:11 +02:00
Markus Makela
6fb64abe11 Fixed broken link
The link referred to the Documentation directory.
2016-03-18 15:11:58 +02:00
Markus Makela
4ee1f304ca MXS-585 regression: Authentication packets are now processed in contiguous memory
The client side authentication assumed that it was processing contiguous memory.
This caused the authentication to fail when packets were received in multiple
parts. Transforming the buffer chain into one contiguous buffer fixes this problem.
2016-03-18 11:22:13 +02:00
Markus Makela
34c3d2c230 MXS-627: Changed the default version string
The default version string is now `5.5.5-10.0.0 <MaxScale version>-maxscale`.
This fill fix Java connector issues related to version string processing.
2016-03-18 10:25:18 +02:00
Johan Wikman
188db106ba Fix broken and missing links 2016-03-18 08:14:27 +02:00
Johan Wikman
f551099af9 Reformat blr.h
By oversight was not reformatted when the source was.
2016-03-17 17:06:23 +02:00
Markus Makela
9aeb1ec9b0 Changed Connector-C build from a branch to a commit
This way even if the branch changes we will still use the commit we've tested.
2016-03-16 22:14:08 +02:00
Markus Makela
1b7fe5e6ea Added note about combining dbfw blacklist and whitelist functionality
Added a small explanation and an excerpt from a configuraton file to
the dbfwfilter documentation. It demonstrates the use of both blacklist
and whitelist functionality in the same service.
2016-03-16 21:33:38 +02:00
Markus Makela
de56f0031f Added note about combining dbfw blacklist and whitelist functionality
Added a small explanation and an excerpt from a configuraton file to
the dbfwfilter documentation. It demonstrates the use of both blacklist
and whitelist functionality in the same service.
2016-03-16 21:33:38 +02:00
Markus Makela
19c9bba1c8 Added missing dbfwfilter syntax documentation
The `allow` keyword can be used to substitute the `deny` keyword but this
was not documented. Also the fact that neither of them affect the actual
behavior of the filter was not very clearly stated.
2016-03-16 21:15:38 +02:00
Markus Makela
e29660b357 Added missing dbfwfilter syntax documentation
The `allow` keyword can be used to substitute the `deny` keyword but this
was not documented. Also the fact that neither of them affect the actual
behavior of the filter was not very clearly stated.
2016-03-16 21:15:38 +02:00
Markus Makela
4a51a9e9af Added the user query to configuration guide
It is useful to know the query when debugging authentication problems.
It will tell if users are missing grants and which users are used.
2016-03-16 19:45:12 +02:00
Markus Makela
5da94f6fb8 Added the user query to configuration guide
It is useful to know the query when debugging authentication problems.
It will tell if users are missing grants and which users are used.
2016-03-16 19:45:12 +02:00
Markus Makela
6d6cc80793 Added flushing of all logs to disk when MaxScale exits
It is possible that messages logged immediately before exiting are not flushed
to disk. Flushing all logs before exiting from the main function guarantees
that any relevant log messages are flushed to disk.
2016-03-16 17:16:50 +02:00
Johan Wikman
a49ae18028 Add beta status to release notes. 2016-03-16 08:48:54 +02:00
Johan Wikman
697223da89 Add beta status to release notes. 2016-03-16 08:48:54 +02:00
Markus Makela
bc35730c73 Fixed a crash when a monitor has no servers
If a monitor is configured with a server which does not exist, MaxScale will
crash.
2016-03-15 16:39:41 +02:00