Staging instance, all changes can be removed at any time

Skip to content

Add `--known-missing` and `--known-missing-file` options

Jérémy Bobbio (Lunar) requested to merge lunar/swh-alter:known-missing into main

Once in a while, objects are missing from the storage. It should not happen but it does: previous removals, replayer errors, corruptions…

swh alter remove and swh alter recovery-bundle resume-removal now accepts the new options --known-missing and --known-missing-file to handle missing objects.

--known-missing is followed by a SWHID and can appear multiple times. --known-missing-file is followed by the path (or - for stdin) of a file with one SWHID per line (skipping empty lines or lines starting with #).

Known missing objects will be skipped during the “inventory” phase and mark as unremovable during the “removable” phase. Due to the latter, they will not be used when creating the recovery bundle, and skipped from removal as well.

Depends !41 (merged)

Edited by Jérémy Bobbio (Lunar)

Merge request reports

Loading