New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GC: correctly handle manifest unknown (404) condition in v2DeleteManifest retry loop #18386
GC: correctly handle manifest unknown (404) condition in v2DeleteManifest retry loop #18386
Conversation
88a1f36
to
7bd1136
Compare
Codecov Report
@@ Coverage Diff @@
## main #18386 +/- ##
==========================================
- Coverage 67.39% 67.38% -0.01%
==========================================
Files 984 984
Lines 106987 106990 +3
Branches 2670 2670
==========================================
- Hits 72101 72099 -2
- Misses 31005 31012 +7
+ Partials 3881 3879 -2
Flags with carried forward coverage won't be shown. Click here to find out more.
|
7bd1136
to
de9ae08
Compare
Signed-off-by: Danny Kulchinsky <dkulchinsky@fastly.com>
de9ae08
to
9489ea5
Compare
Hey @Vad1mo, @wy65701436 was wondering if you had a chance to consider this PR? I have a local build with this change running on our test Harbor and it is working very well, we're finally able to get GC running and actually cleaning up all these manifests & blobs. |
Thanks for approving @zyyw! I updated the branch, let me know if there's anything else needed to get this merged. |
Good question, would make sense as it is a fix. |
you should also make one for the 2.8 release. |
Comprehensive Summary of your change
Currently when a 404 error is returned from the registry in
v2DeleteManifest
retry loop, it will be considered is a temporary/retryable error and will eventually result in thev2DeleteManifest
step to fail, although a 404 (MANIFEST_UNKNOWN) indicates that the manifest no longer exists.This PR adds a check inside the retry loop that marks the
v2DeleteManifest
as success if registry returns a 404.This change seem to correctly align with the next cleanup step that deletes all the manifests revisions using RegistryCtl which also treats a 404 error as success.
Issue being fixed
Fixes #18381
Please indicate you've done the following: