[MDEV-5206] Slave with parallel threads is overly optimistic about its master log position after FLUSH LOGS Created: 2013-10-30 Updated: 2013-10-31 Resolved: 2013-10-31 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | 10.0.5 |
| Type: | Bug | Priority: | Major |
| Reporter: | Elena Stepanova | Assignee: | Kristian Nielsen |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Issue Links: |
|
||||||||
| Description |
|
The test case runs a number ($n) of INSERTs on master, then flushes logs, and tries to synchronize the slave with the master. The test case shows the problem reliably for me with $n = 100 (the first count on the slave is 20 or so), but if it does not for you, please try to increase $n, I suppose it should increase the probability.
Output:
|
| Comments |
| Comment by Kristian Nielsen [ 2013-10-31 ] |
|
In parallel replication, there are two kinds of events which are Normal events that are part of event groups/transactions are executed Other events like format description and rotate and such are executed If the direct execution of the other events were to update the old-style So I now pushed a patch that adds some special cases to prevent such position With this patch, the count is the correct one, 100, in both cases in the |