[MDEV-11926] Data loss on 10.1.20-MariaDB Created: 2017-01-27 Updated: 2018-10-16 Resolved: 2018-10-16 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Replication |
| Affects Version/s: | 10.1.20 |
| Fix Version/s: | 10.0.31 |
| Type: | Bug | Priority: | Critical |
| Reporter: | Igor Drobot | Assignee: | Andrei Elkin |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | Data, integrity, loss, replication | ||
| Environment: |
openSUSE 42.2 MariaDB |
||
| Attachments: |
|
| Description |
|
Since we changed from MySQL to MariDB 10.1.20 we expecting data integrity problems. Some deeper investigations aproved that fact and we would have a resolution for this Problem: In our test case we have two nodes connected over lan and have a typical replication between them: SystemA <---> SystemB From SystemC we have started mysqlslap on SystemA to generate some queries:
In the meantime of the generation we stopped on SystemB the slave and started after some seconds again
We are waiting a while until SystemA has a count of 100000 inserts = mysqlslap has finished the generation:
Repeat the above count on SystemB(Slave) where we have stopped and started the slave, you will see a huge difference. In other words, we have a data loss! |
| Comments |
| Comment by Elena Stepanova [ 2017-01-30 ] |
|
It seems to be the same problem as described in drobot, meanwhile, would it be possible for you to try runnning the test with GTID in your replication setup (CHANGE MASTER TO ... MASTER_USE_GTID=current_pos) and see if the failure goes away? If it does, you might consider using it as a workaround. |
| Comment by Igor Drobot [ 2017-01-30 ] |
|
Using_Gtid is now on Current_Pos. The reproduction of the data loss was since the change not more possible. Also we have made a test-run in a multi source setup with four nodes, which was finished successfully. |
| Comment by Andrei Elkin [ 2018-10-16 ] |
|
Show-Slave-Status' Using_Gtid: No and |