Tech: maintenance task pour purger les blobs openstack orphelins#13475
Open
LeSim wants to merge 1 commit into
Open
Tech: maintenance task pour purger les blobs openstack orphelins#13475LeSim wants to merge 1 commit into
LeSim wants to merge 1 commit into
Conversation
LeSim
marked this pull request as ready for review
July 13, 2026 10:11
Re-scans the whole blob stock by id range, targeting only openstack blobs, and hard-deletes the orphans: their variants, the parent blobs, and the corresponding files on the bucket via delete_multiple_objects. Ref #13421
colinux
approved these changes
Jul 17, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Reparcours de tout le stock de blobs (~120M) par plage d'id, en ne ciblant que
service == openstack, pour supprimer les orphelins : leurs variants, les blobs parents, et les fichiers correspondants sur le bucket viadelete_multiple_objects(une requête = jusqu'à 1000 fichiers, pour ne pas exploser le quota d'appels).Reprend la logique de
Cron::PurgeSoftDeletedBlobsJob#purge_batch— c'est la « Prochaine PR » annoncée dans #13421.À noter
delete_multiple_objects(cassé sur Ruby 3 sans lui). Cette branche sera rebasée sur Tech: corrige des problèmes avec le soft delete des blobs openstack #13421 dès son merge.purge_batch/delete_filesdupliquentPurgeSoftDeletedBlobsJob— à mutualiser au rebase (un commentaire le signale).Ref #13421