Skip to content

Conversation

@bglimepoint
Copy link
Contributor

@bglimepoint bglimepoint commented Nov 11, 2025

Fixes blob deletion following manifest deletion, for us, I think... :-D

I.e. we do a skopeo delete and see method="DELETE" path="/v2/limepoint/worker/manifests/sha256:2720d04859afd43cc734208ff76ca842285defec23d43ffbfe40c65cbc6558a3" status="202" - but nothing's ever delete from disk, afawct. This is for images we manually put in the registry, not proxied ones - just to clarify :-)

One thing seems to be that the GC code looks at the manifest_blob_assoc table, but that table's populated from a trigger and then never deleted from (hence, never gc'd).

Have done a pile of manual testing pushing images and then watching the gc delete things, so reasonably confident this is doing what we need :-)

@bglimepoint bglimepoint marked this pull request as draft November 11, 2025 05:57
@bglimepoint bglimepoint force-pushed the fix-gc-following-deletion-of-manifest branch 7 times, most recently from bcbbd2e to 2b4f2d2 Compare November 11, 2025 10:11
@bglimepoint bglimepoint marked this pull request as ready for review November 11, 2025 10:12
Ensure that the deleted manifest is deleted properly, and hence can be
garbage collected.
@bglimepoint bglimepoint force-pushed the fix-gc-following-deletion-of-manifest branch from 2b4f2d2 to b7e7ed7 Compare November 11, 2025 10:23
@bglimepoint
Copy link
Contributor Author

Also, as a little question, would you accept a PR making the -1 day last_accessed check here configurable? :-)

Thanks for everything by the way, and sorry if any of this is wrong at all 🙏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant