[MDEV-29372] mariabackup runs into a repeated loop InnoDB: Read redo log up to LSN when doing full backup Created: 2022-08-24 Updated: 2022-08-27 Resolved: 2022-08-27 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Backup, Storage Engine - InnoDB |
| Affects Version/s: | 10.4.26 |
| Fix Version/s: | 10.3.37, 10.4.27, 10.5.18, 10.6.10, 10.7.6, 10.8.5 |
| Type: | Bug | Priority: | Major |
| Reporter: | Walter | Assignee: | Marko Mäkelä |
| Resolution: | Duplicate | Votes: | 0 |
| Labels: | mariabackup | ||
| Environment: |
Debian Buster in a 5 node Galera cluster |
||
| Issue Links: |
|
||||||||
| Description |
|
Since upgrading MariaDB to 10.4.26 our mariabackup processes don't finish, but simply run into a loop: Here is the command I run: Seems like Acquiring BACKUP LOCKS... step isn't happening in the new version with full backup. I can do incremental backup on an existing full backup successfully, but I cannot create a new full backup [00] 2022-08-24 15:59:34 >> log scanned up to (377305303) When I specify a full backup to be taken, using this command, it loops through the LSN reads: I've tried turning the innodb_instances to 1 (as described by this bug report in case it was related) but it doesn't resolve the issue. |
| Comments |
| Comment by Marko Mäkelä [ 2022-08-25 ] | |||||||||||||||||||||||||||||||||
|
By design, mariabackup uses a dedicated thread that keeps copying or polling the InnoDB redo log for any new changes. Concurrently with this thread, any data files will be copied. The log-copying thread is not supposed to terminate until the very end. If there is no file copying activity going on, then the progress should actually be blocked by the server. At the end, mariabackup will issue a command like FLUSH TABLES WITH READ LOCK or BACKUP STAGE BLOCK_COMMIT. Depending on the operations that are concurrently executing on the server, it may take a long time for such a command to complete. Please check what is happening on the server side, by issuing a command like SHOW PROCESSLIST. | |||||||||||||||||||||||||||||||||
| Comment by Walter [ 2022-08-25 ] | |||||||||||||||||||||||||||||||||
|
Hi Marko,
It has been running for almost an hour now, where it usually finishes in seconds. | |||||||||||||||||||||||||||||||||
| Comment by Marko Mäkelä [ 2022-08-26 ] | |||||||||||||||||||||||||||||||||
|
Sorry, I failed to notice the --compress option. This looks like a duplicate of | |||||||||||||||||||||||||||||||||
| Comment by Sergei Golubchik [ 2022-08-27 ] | |||||||||||||||||||||||||||||||||
|
walkleyn, I'm going to close it as a duplicate of |