[MDEV-17348] Replication stops with error 1062 Created: 2018-10-02 Updated: 2020-06-22 Resolved: 2020-06-22 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Replication, Storage Engine - InnoDB |
| Affects Version/s: | 10.3.8 |
| Fix Version/s: | N/A |
| Type: | Bug | Priority: | Major |
| Reporter: | Benjamin Setzer | Assignee: | Sujatha Sivakumar (Inactive) |
| Resolution: | Cannot Reproduce | Votes: | 0 |
| Labels: | need_feedback | ||
| Attachments: |
|
| Description |
|
When we connected manually to the slave, the row didn't exist but the auto_increment was incremented. (So 384 was missing on slave, but counter was already at 385) We checked the master, the insert was only once in the binlog. I can reproduce this in our staging environment, so if you have questions I should be able to produce this error again We plan to rework the architecture until next month, so that this only runs once, to lessen the urgency for us. possibly the same as: https://jira.mariadb.org/browse/MDEV-14566 |
| Comments |
| Comment by Sachin Setiya (Inactive) [ 2018-10-04 ] | ||||||||||
|
HI Benjamin Setzer! can you provide | ||||||||||
| Comment by Benjamin Setzer [ 2018-10-08 ] | ||||||||||
|
I added the confdir as zip, because we have some customfiles there. I tried this in dev with binlog_format = row, then the error disappears and all works as expected. | ||||||||||
| Comment by Sachin Setiya (Inactive) [ 2018-10-08 ] | ||||||||||
|
Actually master/slave_status/variables file which you provided is wrong , you can do something like this
>>Which binlog do you need? master/slave? relaylog from slave? Couple of hundred gtid before the error
use this file name(master-bin.000002)
If it contains too much log you can simple select last few hundred line using cursor , and if log is less then you can decrease the master-bin.XXXXX no and run show binlog events. Since it is dev machine and you are able to reproduce error , is it possible to get gdb access to your machine ? | ||||||||||
| Comment by Benjamin Setzer [ 2018-10-08 ] | ||||||||||
|
I fixed the status/variables files, I forgot the -e switch. | ||||||||||
| Comment by Andrei Elkin [ 2018-10-08 ] | ||||||||||
|
Benjamin Setzer, sachin.setiya.007 Let me jump in. For offline analysis we need mysqlbinlog ouput
Alternatively feel free to upload your binlog, I hope it can be made small enough to handle as you wrote the case is reproducible. | ||||||||||
| Comment by Benjamin Setzer [ 2018-10-11 ] | ||||||||||
|
cleaning up the binlog is more work than I anticipated. There are talks about giving one of you access. You are employed at Maria, right? | ||||||||||
| Comment by Andrei Elkin [ 2018-10-11 ] | ||||||||||
|
Yes, we're the Maria engineering stuff members. Gaining access should definitely simplify resolution as well as If you will be able to reproduce it with relatively small binlog. Thank you, Benjamin. Andrei Elkin @ MariaDB.com | ||||||||||
| Comment by Andrei Elkin [ 2019-07-16 ] | ||||||||||
|
According to sujatha.sivakumar's search the issue may be caused because of https://bugs.mysql.com/bug.php?id=88321, which is going to be available in a new upstream release. | ||||||||||
| Comment by Sujatha Sivakumar (Inactive) [ 2019-12-05 ] | ||||||||||
|
Hello Benjamin Setzer, Upstream fix for https://bugs.mysql.com/bug.php?id=88321, is available on commit 7153e155424de4b42bc0f96ceb6433e4ed1f827a Can you please verify the reported bug scenario on latest 10.3 code. Thank you. | ||||||||||
| Comment by Andrei Elkin [ 2020-06-15 ] | ||||||||||
|
Maybe the upstream bug fixes have dealt with the case, yet that case described as having auto_increment_increment > 1 which seems not to be the current case. | ||||||||||
| Comment by Benjamin Setzer [ 2020-06-15 ] | ||||||||||
|
I no longer work at this place, so sadly I cant test it anymore, sorry. | ||||||||||
| Comment by Andrei Elkin [ 2020-06-15 ] | ||||||||||
|
Benjamin Setzer, thank you for the efforts. If we won't complete it wo/ help, you got to file few more! | ||||||||||
| Comment by Andrei Elkin [ 2020-06-22 ] | ||||||||||
|
Closed in agreement with Sujatha. If a bug which this symptom still exist will proceed from that ticket. |