Repository navigation
mount/manager: check lease bucket in rollback - #14553
Open
samuelkarp wants to merge 1 commit into
Open
samuelkarp wants to merge 1 commit into
samuelkarp wants to merge 1 commit into
Conversation
The rollback of a failed Activate assumed its lease bucket still exists. A client of the mounts gRPC service can get the bucket deleted while the activation is running: 1. Activate(A) under lease L adds A to L's bucket and starts mounting. 2. Deactivate(A) removes A from L's bucket and leaves it empty. 3. Activate(B) under L fails. Its rollback deletes the empty bucket. 4. Activate(A) fails. Its rollback panics on the nil bucket. Assisted-by: Claude Code:claude-opus-5-5 Signed-off-by: Samuel Karp <me@samuelkarp.com>
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues are reported for the lease-bucket rollback cleanup change.
No open issues 🎉
What changed in this PR
This PR prevents a panic during failed mount activation when concurrent operations have already deleted the associated lease bucket.
Changes:
- Keep the empty-bucket check and deletion inside the existing nil guard.
- Add a regression test that reproduces the rollback sequence using coordinated mount failures.
| File | Description |
|---|---|
core/mount/manager/manager.go |
Guard rollback cleanup against an already-deleted lease bucket. |
core/mount/manager/manager_test.go |
Verify that rollback returns an error without panicking after lease-bucket deletion. |
Review effort: Balanced
This branch has not been deployed
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.
The rollback of a failed Activate assumed its lease bucket still exists. A client of the mounts gRPC service can get the bucket deleted while the activation is running:
Assisted-by: Claude Code:claude-opus-5-5