[MDEV-30179] mariabackup --backup fails with FATAL ERROR: ... failed to copy datafile. Created: 2022-12-09 Updated: 2023-03-03 Resolved: 2023-01-10 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Storage Engine - InnoDB |
| Affects Version/s: | 10.11.2 |
| Fix Version/s: | 10.11.2, 11.0.1, 10.5.19, 10.6.12, 10.7.8, 10.8.7, 10.9.5, 10.10.3 |
| Type: | Bug | Priority: | Major |
| Reporter: | Matthias Leich | Assignee: | Thirunarayanan Balathandayuthapani |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | rr-profile | ||
| Issue Links: |
|
||||||||
| Description |
|
Hitting this bug is very rare. RQG:
sdp:/data/results/1670586562/Backup$ _RR_TRACE_DIR=./1_clone/rr rr replay --mark-stdio |
| Comments |
| Comment by Marko Mäkelä [ 2022-12-09 ] |
|
I see two problems here. First, the error message fails to mention the file name (undo002) even though it would be readily available a couple stack frames earlier. Second, it may be that mariadb-backup assumes that files will not shrink while they are being copied, that is, it is not compatible with innodb_undo_log_truncate=ON. |
| Comment by Thirunarayanan Balathandayuthapani [ 2022-12-20 ] |
|
Patch is in bb-10.6- |
| Comment by Marko Mäkelä [ 2022-12-20 ] |
|
Thank you, the high level algorithm looks OK to me. I posted some suggestions. I think that we should target already 10.5 with this fix, because that is when we last changed the format of the redo log records that are being written for undo tablespace truncation. |
| Comment by Thirunarayanan Balathandayuthapani [ 2023-01-02 ] |
|
Patch is in bb-10.5- |
| Comment by Marko Mäkelä [ 2023-01-09 ] |
|
I posted some review comments. |