Repository navigation
fix: remove a checkpoint after its container is gone - #5284
Merged
AkihiroSuda merged 1 commit intoNov 15, 2026
Merged
Conversation
Member
|
Can we have an integration test too? |
checkpoint rm refused to delete the directory unless the container still existed, so a checkpoint outlived the container and could not be removed. Fixes containerd#5282 Signed-off-by: jony montana <[email protected]>
jonyhy96
force-pushed
the
cursor/checkpoint-rm-orphaned-6b1d
branch
from
October 24, 2026 01:43
bd465b9 to
52d41c2
Compare
Contributor
Author
|
Added an integration case, It creates a checkpoint, removes the container, then runs |
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.
nerdctl checkpoint rmrefused to delete a checkpoint unless the container still existed. The checkpoint directory is keyed only by the checkpoint name, so it stays in the data root after the container is removed and could not be deleted with nerdctl.When the container lookup finds nothing and the checkpoint directory is still present, the command now deletes that directory. A missing container and a missing checkpoint still report
no such container. A path that exists but is not a directory still returns that error.Fixes #5282