Bug #92346 | Slave stops with error after processing log file with large number of entries | ||
---|---|---|---|
Submitted: | 9 Sep 2018 16:57 | Modified: | 11 Sep 2018 16:04 |
Reporter: | Thomas Smith | Email Updates: | |
Status: | Duplicate | Impact on me: | |
Category: | MySQL Server: Replication | Severity: | S2 (Serious) |
Version: | 5.7.22 | OS: | CentOS (6.5) |
Assigned to: | MySQL Verification Team | CPU Architecture: | Any |
[9 Sep 2018 16:57]
Thomas Smith
[10 Sep 2018 11:12]
MySQL Verification Team
Take a look at this: https://bugs.mysql.com/bug.php?id=55231 (COM_BINLOG_DUMP needs to accept 64-bit positions else slaves can break)
[10 Sep 2018 11:54]
MySQL Verification Team
As my colleague already pointed out, this is a duplicate of https://bugs.mysql.com/bug.php?id=55231
[10 Sep 2018 12:26]
MySQL Verification Team
workaround as explained in https://bugs.mysql.com/bug.php?id=55231 [quote] workaround is to set a lower max_binlog_cache_size, around this size: (4*1024*1024*1024) - max_binlog_size maybe some overhead bytes can be deducted too. [/quote]
[10 Sep 2018 13:45]
Thomas Smith
Thanks guys, I'll try the workaround. But since the referenced open issue was last commented on in 2011, I won't hold my breath for an actual fix.
[10 Sep 2018 17:35]
Thomas Smith
The documentation actually says "The maximum recommended value is 4GB; this is due to the fact that MySQL currently cannot work with binary log positions greater than 4GB." Is that accurate, or should it say "...4GB - max_binlog_size" as you are recommending?
[11 Sep 2018 16:04]
Thomas Smith
Suggested workaround fails. It causes the master to reject the (single) query with the error Multi-statement transaction required more than 'max_binlog_cache_size' bytes of storage; increase this mysqld variable and try again