[MDEV-18963] Mariabackup 10.2.22 Restore Intermittent Failures Created: 2019-03-19 Updated: 2023-12-04 Resolved: 2023-12-04 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | mariabackup |
| Affects Version/s: | 10.2.22 |
| Fix Version/s: | N/A |
| Type: | Bug | Priority: | Major |
| Reporter: | Stephen Hames | Assignee: | Sergei Golubchik |
| Resolution: | Not a Bug | Votes: | 0 |
| Labels: | None | ||
| Environment: |
CentOS Linux 7.6.1810 (core) |
||
| Description |
|
We recently upgraded from MariaDB 10.2.17 to 10.2.22; since this update, we are hitting intermittent issues with mariadb server failing to start on the mariabackup cloned host, with the following error logged:
We use mariabackup (streaming backup over SSH) to clone a server, several times a day. The source server is a slave, all tables are InnoDB. We use following options when performing the backup:
We then prepare the backup on the cloned server using the following options:
Prepare logs as below, on a job, where server subsequently fails to start; no obvious errors shown - prepare job reported success.
Note: We remove the empty ib_logfile0 file after mariabackup prepare due to server refusing to start with the empty mariabackup generated ib_logfile. |
| Comments |
| Comment by Vladislav Vaintroub [ 2019-03-19 ] |
|
Assigning to Marko for evaluation. |
| Comment by Marko Mäkelä [ 2023-12-04 ] |
|
I only know that --tc-heuristic-recover has something to do with the binlog’s internal use of XA transactions for keeping the binlog in sync with the InnoDB redo log. |
| Comment by Sergei Golubchik [ 2023-12-04 ] |
|
10.2 is EOL. The earliest still maintained version is 10.4, in 10.4 you can run mariabackup --rollback-xa, like we do in this test in our test harness. from 10.5 there is no --rollback-xa, you need to start the server with --tc-heuristic-recover=ROLLBACK there. Like we do in the same test in 10.5 |