[MDEV-28832] infinite loop in mariabackup if log LOG_HEADER_FORMAT field is 0 Created: 2022-06-14  Updated: 2022-06-16  Resolved: 2022-06-15

Status: Closed
Project: MariaDB Server
Component/s: Backup
Affects Version/s: 10.5, 10.6, 10.7, 10.8, 10.9, 10.10
Fix Version/s: 10.5.17, 10.6.9, 10.7.5, 10.8.4, 10.9.2, 10.10.0

Type: Bug Priority: Major
Reporter: Vladislav Lesin Assignee: Vladislav Lesin
Resolution: Fixed Votes: 0
Labels: None

Issue Links:
Problem/Incident
is caused by MDEV-28473 field_ref_zero is not initialized in ... Closed

 Description   

After MDEV-28473 fix, there is infinite loop in mariabackup:

        if (err != DB_SUCCESS) {
                msg("Error: cannot read redo log header");
unlock_and_fail:
                mysql_mutex_unlock(&log_sys.mutex);
        }
 
        if (log_sys.log.format == 0) {
                msg("Error: cannot process redo log before MariaDB 10.2.2");
                goto unlock_and_fail;
        }



 Comments   
Comment by Vladislav Lesin [ 2022-06-15 ]

I was unable to reproduce any infinite loop even with a hand-crafted log file. It could require running a newer major version mariadb-backup against an older server.

Generated at Thu Feb 08 10:03:49 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.