Bug #78061 | GTID replication halts with Error_code: 1032; handler error HA_ERR_END_OF_FILE | ||
---|---|---|---|
Submitted: | 13 Aug 2015 21:53 | Modified: | 17 Apr 2019 20:27 |
Reporter: | Steven Douglas | Email Updates: | |
Status: | Not a Bug | Impact on me: | |
Category: | MySQL Server: Row Based Replication ( RBR ) | Severity: | S1 (Critical) |
Version: | 5.6.25 | OS: | FreeBSD (10.1) |
Assigned to: | MySQL Verification Team | CPU Architecture: | Any |
[13 Aug 2015 21:53]
Steven Douglas
[2 Sep 2015 7:48]
Steven Douglas
After fighting with this for a few months, we think we have a workaround. To be clear, we believe that this is still a bug in the MySQL GTID row based replication. What we have is a workaround. Because of the nature of the bug, we can see why this bug would be hard to find, but believe it is a valid use case. We started to notice a trend in the tables that were having errors. None of them have unique (PRIMARY) indexes. This seems to break replication, depending on traffic, in 1-24 hours. We are still unable to determine what exact operation actually breaks replication. After applying an auto incremented primary id to the table, all the issues disappear. This is a pain, as our client has a high volume of affected tables, but we are relieved to have a workaround.
[23 Sep 2015 0:56]
Steven Douglas
Our company wrote up a post on our website about this issue: https://www.ateamsystems.com/tech-blog/mysql-rbr-row-based-replication-w-gtid-halts-with-e...
[14 Feb 2016 15:18]
Vitaly Karasik
is there any updates for this bug?
[13 Jun 2017 5:00]
Marycole Pernitiz
We are having similar problem. We had it last year but it works on its own without us knowing why it work. Now, this error occurs again but this time it comes back after a few hours of doing db restoration, very similar problem to the above. Our MySQL version is 5.7.13
[19 Jul 2017 16:01]
Bobby Iliev
We've got the same problem here. After running SQL_SLAVE_SKIP_COUNTER a couple of times and restating the slave server, the occasionally replication starts again. But this is not ideal as we need to constantly monitor the status. Do you think that switching from RBR to Mixed, would be a good idea? Also has anyone test that with MariaDB?
[17 Apr 2019 20:27]
MySQL Verification Team
Hi, There is more then one instance on the Internet explaining why tables without PK are not going to properly work with RBR. I cannot reproduce your issue with any of the modern versions of MySQL but in any case, you will never have decent rbr with tables that are without PK. best regards Bogdan