Repository navigation
Conversation
butonic
force-pushed
the
port-720
branch
2 times, most recently
from
October 30, 2026 10:16
de0cc56 to
c2a816a
Compare
dragonchaser
approved these changes
Nov 3, 2026
butonic
force-pushed
the
port-720
branch
4 times, most recently
from
November 4, 2026 07:56
1d8c666 to
3d7d402
Compare
Co-authored-by: Firas Frikha <[email protected]>
RollbackUpload takes the RollbackInfo the coordinator records in the session. When the node's metadata can no longer be read, the pkg fork falls back to the recorded node and parent ids: it reverts the size propagation and removes the node through the lookup, so posix drops the file and its id cache entry, and decomposedfs the parent's child entry. If the propagation fails, the node is kept so the rollback can be retried. Only a missing parent id counts as orphaned. Any other lookup error, e.g. an unavailable cache, may be temporary and is returned. The node is only removed if the upload created it and it is still empty: an existing node holds the previous version, on posix the user's file, and content in a new node was written by something outside of us. Assisted-by: Claude Code:claude-opus-5-5 Signed-off-by: Jörn Friedrich Dreyer <[email protected]>
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.
Part of the upload coordinator stack, see #934.
Cleaning up an orphaned upload now rolls back its node through the driver's
RollbackUploadand releases the quota, like #951 did for the legacy sessions.RollbackUploadgets the ids recorded in the session (storage.RollbackInfo), so in the pkg fork a node whose metadata can't be read any more is still rolled back.Review focus:
RollbackInfoinpkg/storage/storage.go: is that enough for a driver to undoPrepareUploadwithout readable metadata?prepare_upload.goin the pkg fork and its posix testReview commit by commit: the first commit is the generic change, the following ones adapt the pkg decomposedfs fork and posix.
stacked on #938
Assisted by Claude Code (claude-opus-5-5): it adapted the changes, split them into this stack and wrote this description.