[MDEV-22096] Mariabackup copied too old page or too new checkpoint Created: 2020-03-31 Updated: 2020-04-08 Resolved: 2020-04-08 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | mariabackup, Storage Engine - InnoDB |
| Affects Version/s: | 10.5.2 |
| Fix Version/s: | 10.5.3 |
| Type: | Bug | Priority: | Major |
| Reporter: | Matthias Leich | Assignee: | Marko Mäkelä |
| Resolution: | Duplicate | Votes: | 0 |
| Labels: | None | ||
| Attachments: |
|
||||||||||||||||||||||||||||
| Issue Links: |
|
||||||||||||||||||||||||||||
| Description |
|
|
| Comments |
| Comment by Marko Mäkelä [ 2020-03-31 ] | |||||||||||||||||||||||||||||||||
|
I am rather convinced that this bug occurs because mariabackup --backup is for some reason not observing page flushes.
indicates that for the problematic page 6:677, there will only be one record since the checkpoint:
In the page, we have FIL_PAGE_LSN=0x688b84=6851460. That is older than the checkpoint.
We have rather clear evidence that mariabackup --backup seems to be broken. The stricter consistency checks implemented in There also seems to be a bug in mariabackup --prepare: it should have aborted at the first ERROR, but it did not. Unfortunately, there was no rr record of the mariabackup --backup run, so I cannot analyze this failure further. I think that I have proven that either the bug is somewhere deep inside the InnoDB page flushing, in the operating system or file system, or in the inter-process communication via the file system. Sadly, no effort to implement server-side backup (MDEV-14992) was done yet. | |||||||||||||||||||||||||||||||||
| Comment by Marko Mäkelä [ 2020-04-08 ] | |||||||||||||||||||||||||||||||||
|
While the rr replay trace of this failure was ruined by unattended-upgrades and could not be analyzed further, the fact that this failure is no longer reproducible with a more recent 10.5 strongly suggests that the cause of this failure was that the server failed to write a FREE_PAGE record before omitting a page write. That bug was introduced by |