Skip to content

Commit

Permalink
backup-compactor: Ignore failure in backing up .meta file (#16043)
Browse files Browse the repository at this point in the history
  • Loading branch information
msmouse authored Mar 4, 2025
1 parent 436f6ab commit 7ff4f18
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions storage/backup/backup-cli/src/coordinators/backup.rs
Original file line number Diff line number Diff line change
Expand Up @@ -453,9 +453,18 @@ impl BackupCompactor {
let (to_move, compaction_meta) =
self.update_compaction_timestamps(&mut metaview, files, new_files)?;
for file in to_move {
// directly return if any of the backup task fails
info!(file = file, "Backup metadata file.");
self.storage.backup_metadata_file(&file).await?
self.storage
.backup_metadata_file(&file)
.await
.map_err(|err| {
error!(
file = file,
error = %err,
"Backup metadata file failed, ignoring.",
)
})
.ok();
}
// save the metadata compaction timestamps
let metadata = Metadata::new_compaction_timestamps(compaction_meta);
Expand Down

0 comments on commit 7ff4f18

Please sign in to comment.