9ba2e4b97e
Changed burst_size to long instead of unsigned long
...
Changed burst_size to long instead of unsigned long.
This way check burst_size > 0 is now effective.
Setting "burstsize" option in router_options may be required.
i.e.: burstsize=10M
2015-12-30 16:14:13 +01:00
e9755ba2b6
Remove file from slave
...
The binlog file is now always opened when it is needed and closed
when we are finished with it. That will remove any potential
file concurrency issues between different threads dealing with
the same slave.
2015-12-29 09:47:37 +02:00
4f8340f5b2
Changed behaviour for a slave requesting master_log_pos beyond binlog file size
...
Slave request for a log_pos behind binlog file size may result in a
disconnection or replication error:
if binlog file is latest one slave get disconnected otherwise an error
message is returned and replication stops
2015-12-28 18:00:52 +01:00
3139be8e5a
Fixed SHOW SLAVE STATUS showing obsolete slaves
...
If SHOW SLAVE STATUS was executed after DISCONNECT ALL it was possible that
some of the disconnected slaves were used when printing slave hosts.
2015-12-10 15:50:20 +02:00
000a044da6
Slaves are set to unregistered state once disconnected
...
It was possible that the same slave was disconnected multiple times
before the slave DCB was closed.
2015-12-10 15:50:20 +02:00
9a3aae64ce
Replaced explicit closeSession calls with dcb_close
...
The closeSession entry point shouldn't be called directly and dcb_close
should be used instead.
2015-12-10 15:50:20 +02:00
49cf4089fc
Make state-change logging conditional.
2015-12-10 15:50:20 +02:00
f49bd06a7e
Reduce logging of binlog server
...
Only the true state changes of a slave - up-to-date -> catch-up
or catch-up to up-to-date - are logged.
2015-12-10 15:50:20 +02:00
43c5a495a2
Removed useless spaces
...
Removed useless spaces
2015-12-10 15:50:20 +02:00
3f31f5548d
Addition of slave transition to catchup mode in logging
...
Addition of slave transition to catchup mode in logging
2015-12-10 15:50:20 +02:00
6367ac7148
Changed log level for up to date transition
...
Changed log level for up to date transition
2015-11-30 19:23:36 +01:00
592e4d06cb
Changed name for bad fd
...
Changed name for bad fd
2015-11-30 10:22:47 +01:00
ba135c5548
Log messages fix with slave ip:port and id
...
Log messages fix with slave ip:port and id
2015-11-30 10:22:12 +01:00
c167499c7b
Add notice about previous failure to unlock.
...
In blr_slave.c under certain conditions, two locks were not released.
That was fixed in another change, and with this change a notice will be
logged if that branch is entered. That way it will be possible to find
out whether this may have been the cause of earlier lock-ups.
2015-11-23 09:51:59 +02:00
99fdf9cdec
Fixed reference to LOGIF macro
...
Fixed reference to LOGIF macro
2015-11-19 17:54:23 +01:00
023d4bc588
Develop merge
...
Develop merge
2015-11-19 17:06:30 +01:00
90d2dc336c
Missing lock release added
...
Missing lock release added and log message update
2015-11-19 08:58:49 +01:00
afdeb6fa5b
binlogrouter: All LOGIFs and skygw_log_writes replaced.
...
All LOGIFs and skygw_log_writes replaced with the equivalent
MXS_[ERROR|WARNING|NOTICE|INFO|DEBUG] macros.
2015-11-18 12:35:21 +02:00
f06eec13f6
Merge branch 'develop' into 1.2.1-binlog_router_trx
2015-11-17 09:50:25 +01:00
a355e1beef
Printf format checking added to logging function.
...
Printf format checking added to logging function and all
issues that were revealed by that fixed.
2015-11-16 12:40:49 +02:00
3346c9c30d
Removed '' around slave_uuid
...
Removed '' around slave_uuid
2015-11-11 15:18:20 +01:00
8395bad394
Added slave remote port in log messages
...
Added slave remote port in log messages
2015-11-11 12:19:58 +01:00
dee20fe077
Merge remote-tracking branch 'origin/develop' into MXS-329-develop-20151111
...
# Conflicts:
# server/core/CMakeLists.txt
# server/core/buffer.c
# server/core/service.c
# server/modules/filter/tee.c
# server/modules/monitor/mysql_mon.c
# server/modules/routing/binlog/blr.c
# server/modules/routing/binlog/blr_slave.c
# server/modules/routing/debugcmd.c
# server/modules/routing/readwritesplit/readwritesplit.c
# utils/skygw_utils.cc
- resolved.
2015-11-11 11:08:02 +00:00
23b3c9d2b2
Log message removed
...
Log message removed
2015-11-09 11:53:27 +01:00
e7dbc605af
Spinlock added for slave state set
...
Spinlock added for slave state set
2015-11-09 09:59:36 +01:00
00c506b029
Fix for rotate and catchup with transaction_safety = 1
...
Fix for rotate and catchup with transaction_safety = 1
2015-11-06 18:14:52 +01:00
c37b33c60e
Merge branch '1.2.1-binlog_router_trx' into develop
2015-11-04 16:42:30 +01:00
d51ac7ab7d
Disconnect slave when pos is UNSAFE
...
Disconnect slave when pos is UNSAFE instead of sending an error that
stops the replication
2015-11-04 16:24:46 +01:00
834a88aeda
Log variables moved to log_manager.h
...
The log manager variables lm_enabled_log_files_bitmask, log_ses_count
and tls_log_info that earlier were declared separately in every
c-file are now declared in the log_manager.h header.
2015-11-04 14:26:53 +02:00
a066b34e8e
Fix for change master to new binlog file
...
Fix for change master to new binlog file
2015-10-26 10:35:33 +01:00
8208f3a728
strerror_r update
...
strerror_r update
2015-10-23 18:44:39 +02:00
4b923ce4bc
Merge branch '1.2.1-binlog_router_trx' of https://github.com/mariadb-corporation/MaxScale into 1.2.1-binlog_router_trx
2015-10-23 16:44:21 +03:00
bf6286e598
Fix for new file creation after change master to new log file
...
Fix for new file creation after change master to new log file
2015-10-23 15:35:48 +02:00
3be5238bd7
Fixed indentation.
2015-10-23 15:05:51 +03:00
63f4bc3aec
Changed from router->binlog_lock to router->lock for transaction safety code and cleaned up code.
2015-10-23 14:54:08 +03:00
40ffe21dd8
Added a variable for current event being processed after a transaction is committed.
2015-10-23 12:33:51 +03:00
a8f866d372
Message log update
...
Message log update
2015-10-19 11:37:20 +02:00
9b65e0b8b6
Fixed compiler warnings.
2015-10-14 10:58:32 +03:00
e38ea9d07d
Correct missing return value.
2015-10-02 16:19:59 +01:00
d31e081e45
Changed log messages for blr_read_binlog, added slave send error feaure
...
Changed log messages for blr_read_binlog, added slave send error feaure.
When blr_read_binlog detects an error an error message with 1236 code
is sent to the slave and it will stop the replication to binlogrouter
2015-10-01 17:03:48 +02:00
e043d204b4
blr_send_custom_error with errno and state
...
blr_send_custom_error with errno and state
2015-09-30 15:59:48 +02:00
680589ed46
Slave heartbeat period is reported in diagnostics
...
Slave heartbeat period is reported in diagnostics only if router option
is set
2015-09-30 15:21:18 +02:00
f9ee9ca028
Addition of send_slave_heartbeat option
...
Addition of send_slave_heartbeat option
2015-09-30 14:39:26 +02:00
1fa5cfbeb7
Typo fixed
...
Typo fixed
2015-09-28 12:17:06 +02:00
d9a776d81a
Added @@global.server_id and @@global.server_uuid
...
Added @@global.server_id and @@global.server_uuid
2015-09-28 12:12:26 +02:00
b6df52a68e
Addition of slave heartbeat check
...
Addition of slave heartbeat check
2015-09-25 15:58:36 +02:00
2231d0870c
Place checks in callback routines because DCB will not always contain a reference to a router session, and the associated data will be invalid in this case.
2015-09-25 12:17:18 +01:00
72f08de889
Removed duplicated code
...
Removed duplicated code
2015-09-22 16:50:11 +02:00
de8e54da8b
Fix for compile error
...
Fix for compile error
2015-09-21 09:00:39 +02:00
2c12ba3d16
Various fixes
...
Various fixes for initialisation and packet size allocation
2015-09-21 09:00:20 +02:00