Skip to content
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

cache: fix cache leak #4353

Merged
merged 1 commit into from
Oct 20, 2023
Merged

cache: fix cache leak #4353

merged 1 commit into from
Oct 20, 2023

Conversation

fanjiyun
Copy link
Contributor

@fanjiyun fanjiyun commented Oct 19, 2023

After loading snapshot failed in the func init(), the compression variants lease was not cleaned, resulting in cache data not being garbage collected;

After run buildctl prune --all,there are still hundreds of GB of data remaining in the /var/lib/buildkit/runc-overlayfs/content/blobs/sha256/ directory;

the error info:
level=debug msg="could not load snapshot zy9eqBpcso79doeajneev8iii: not found\n..."

Signed-off-by: fanjiyun.fjy [email protected]

Signed-off-by: fanjiyun.fjy <[email protected]>
@tonistiigi tonistiigi merged commit 3f1e447 into moby:master Oct 20, 2023
55 of 56 checks passed
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.

3 participants