Updated on 2023-03-06 GMT+08:00

Backup Failures Due to DDL Operations

Scenario

Backups failed to be created for a DB instance two days in a row because there were DDL operations performed during the time window defined in the backup policy.

Possible Causes

RDS for MySQL uses XtraBackup to create full backups. To ensure data consistency, there are metadata lock conflicts between full backups and DDL operations. As a result, backups are blocked and fail due to timeouts.

Run the show processlist command to check whether any DDL operation was performed in the backup time window.

Solution

  1. Stop the DDL operations and perform a manual backup.
  2. Do not perform DDL operations in the backup time window.