Skip to content

Revert "metadata: bound snapshotter Remove during garbage collection" - #14119

Merged
mxpv merged 1 commit into
mainfrom
revert-13799-bound-snapshot-gc-remove
Sep 6, 2026
Merged

mxpv merged 1 commit into
mainfrom
revert-13799-bound-snapshot-gc-remove

Conversation

@mikebrow

@mikebrow mikebrow commented Sep 5, 2026 •

Copy link
Copy Markdown
Member

Reverts #13799

see agreement to go a different direction here #14026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 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.Remove with a timeout in metadata GC.
  • Drop the corresponding timeout configuration entry from the config manpage.
  • Remove tests that validated GC behavior when Remove hangs and when Remove returns ErrFailedPrecondition.
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.

Comment thread core/metadata/snapshot.go Resolved
Comment thread core/metadata/snapshot_test.go Resolved
@mikebrow
mikebrow force-pushed the revert-13799-bound-snapshot-gc-remove branch from 10baeb5 to aeb095b Compare September 5, 2026 21:26
@mikebrow mikebrow added this to the 2.4 milestone Sep 5, 2026
@mikebrow mikebrow added the area/cri Container Runtime Interface (CRI) label Sep 5, 2026
@NahumLitvin

NahumLitvin commented Sep 6, 2026 •

Copy link
Copy Markdown
Contributor

The plot thinkens 😅
Agreed.

@github-project-automation github-project-automation Bot moved this from Needs Triage to Review In Progress in Pull Request Review Sep 6, 2026
@mxpv
mxpv added this pull request to the merge queue Sep 6, 2026
Merged via the queue into main with commit 6effe52 Sep 6, 2026
96 of 98 checks passed
@github-project-automation github-project-automation Bot moved this from Review In Progress to Done in Pull Request Review Sep 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/cri Container Runtime Interface (CRI) size/L

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

5 participants