Repository navigation
Conversation
butonic
force-pushed
the
port-756
branch
3 times, most recently
from
October 30, 2026 10:44
21e49a8 to
532c942
Compare
dragonchaser
approved these changes
Nov 2, 2026
butonic
force-pushed
the
port-756
branch
2 times, most recently
from
November 3, 2026 15:19
fdba4bc to
f1e2e77
Compare
butonic
force-pushed
the
port-756
branch
4 times, most recently
from
November 4, 2026 07:56
31842e0 to
80dd61c
Compare
The posix changes are left to a follow-up commit, since our posix is built on the other decomposedfs copy.
…nto it ReadNode caches the node's attributes, not the revision's, when it reads a revision. CommitUpload wrote the scan result onto the revision a newer upload had kept for it, and on posix that write stored the cached attributes: the revision then claimed the newer upload's blob id and size. CommitUpload now drops the cache of the revision it writes into. Assisted-by: Claude Code:claude-opus-5-5 Signed-off-by: Jörn Friedrich Dreyer <[email protected]>
…ploads The pkg fork's PrepareUpload creates a new file's node under the id the coordinator minted, marks the node as processing in the same attribute batch, reports the space owner of a new file, and purges a node it created when it fails. Posix and the decomposedfs tree remove what InitNewNode made when it fails; posix caches the new id only once the name is its own, and keeps the storage path out of the AlreadyExists error. When two uploads to the same file overlap, the older one survives whatever happens to the newer one, also with versioning disabled: - PrepareUpload snapshots a node another upload is still processing, and records that upload's processing mark on the revision - RollbackUpload restores the revision through the tree, so posix gets the content back too, and hands the mark back to the older upload - an upload that commits into such a revision clears the mark there - with versioning disabled, a commit to the live file drops the revisions that only served a rollback - rolling back the older upload drops the revision the newer one kept of it 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.
PrepareUploadnow creates a new file's node under the id handed out at initiate, together with the processing mark, in one attribute batch. There is no window any more where the node exists without the mark.It also handles overlapping uploads to the same file: the older one survives whatever happens to the newer one (commit, rollback), also with versioning disabled. On posix that includes the content. A revision a newer upload commits into keeps its own metadata.
This is the biggest PR of the stack.
Review focus:
prepare_upload.go(pkg fork): the new-file path and the snapshot taken for an existing filecommit_upload.goand posixtree.go: restoring a superseded upload on rollback, with and without versioningposix_superseded_upload_test.godescribes the scenariosReview commit by commit: the first commit is the generic change, the following ones adapt the pkg decomposedfs fork and posix.
stacked on #943
Assisted by Claude Code (claude-opus-5-5): it adapted the changes, split them into this stack and wrote this description.