-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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 Can delete that are not supposed to be deleted. #20547
Comments
maybe related to beego/beego#5255 resolved by #20452 |
Similar issue: #19401 |
The issue may be caused by the beego ORM, as it doesn't carry errors during data scanning. In some extreme cases, such as when a connection is out of use, the ORM returns incorrect data, leading to wrong blob deletion candidates. We're working on upgrading Beego with this pull request. #20555 To mitigate the issue, you can now schedule garbage collection during low usage time slots. |
We have this PR for it: |
This issue is being marked stale due to a period of inactivity. If this issue is still relevant, please comment or remove the stale label. Otherwise, this issue will close in 30 days. |
@Vad1mo, does the Harbor 2.12 with the fix solve this issue for you? We are experiencing the same issue, and we have lots of containers broken because of missing layers. |
Expected behavior and actual behavior:
We have observed that a few times already, In some cases the GC might delete images that were not scheduled to be deleted.
The result is that information is present in Harbor UP and DB but not in S3.
It is also observable in the GC Logs that the manifest was deleted.
Steps to reproduce the problem:
In the UI the image is still visible
The image manifest sha is start with d4f9a6cf
trying to pull this image results in
manifest unknown
instead ofnot found
if the images don't exist anymore.Versions:
Additional context:
The text was updated successfully, but these errors were encountered: