Repository navigation
Revert "metadata: bound snapshotter Remove during garbage collection" - #14119
Merged
Merged
Conversation
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
Removing the per-Remove bound reintroduces an indefinite hang risk during snapshot GC (while holding the snapshotter lock) and the revert also drops coverage for GC error-handling behavior that remains in the code.
Once you've addressed the issues Copilot identified, you can request another Copilot review.
Pull request overview
This PR reverts #13799 by removing the snapshotter Remove timeout that previously bounded per-snapshot removal during metadata GC, along with its related configuration documentation and tests.
Changes:
- Remove the GC snapshotter remove timeout key/default and stop wrapping
Snapshotter.Removewith a timeout in metadata GC. - Drop the corresponding timeout configuration entry from the config manpage.
- Remove tests that validated GC behavior when
Removehangs and whenRemovereturnsErrFailedPrecondition.
File summaries
| File | Description |
|---|---|
| docs/man/containerd-config.toml.5.md | Removes documentation for the GC snapshotter remove timeout key. |
| core/metadata/snapshot.go | Reverts the bounded Snapshotter.Remove call during GC and deletes the associated timeout key/default setup. |
| core/metadata/snapshot_test.go | Removes GC-focused regression tests that exercised the previously bounded Remove behavior. |
Review details
- Files reviewed: 3/3 changed files
- Comments generated: 2
- Review effort level: Lite
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Signed-off-by: Mike Brown <[email protected]>
mikebrow
force-pushed
the
revert-13799-bound-snapshot-gc-remove
branch
from
September 5, 2026 21:26
10baeb5 to
aeb095b
Compare
fuweid
approved these changes
Sep 5, 2026
Contributor
|
The plot thinkens 😅 |
mxpv
approved these changes
Sep 6, 2026
This was referenced Sep 15, 2026
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.
Reverts #13799
see agreement to go a different direction here #14026