Repository navigation
Conversation
butonic
force-pushed
the
port-746
branch
3 times, most recently
from
October 30, 2026 10:44
6bb5184 to
d2a79be
Compare
dragonchaser
approved these changes
Nov 2, 2026
butonic
force-pushed
the
port-746
branch
4 times, most recently
from
November 4, 2026 07:56
a34c1d6 to
cba8c96
Compare
… retries are exhausted This also adds the reva_upload_sessions_commit_failed counter the retry reports, which came with the driver-side retry that the coordinator replaces.
…once When the coordinator rolls back a node but keeps the upload (an abort, a commit that failed after all retries, a cleanup that keeps the bytes), the session is now marked failed with the reason and its size diff is cleared. Listing uploads shows why the upload stopped, and a later cleanup of the kept session cannot release the quota a second time, which matters for an orphaned node whose rollback works from the session alone. Assisted-by: Claude Code:claude-opus-5-5 Signed-off-by: Jörn Friedrich Dreyer <[email protected]>
… commit fails The decomposedfs upload sessions finished an upload without the request's cancellation, so a client going away could not leave it half done, and kept the staged bytes when a synchronous commit failed, as they are the only copy of the upload. Restore both in the coordinator: a failed synchronous commit now rolls back the node but keeps the session, marked failed, like a failed asynchronous one. Log why tusd could not finish an upload, as the sessions did. 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.
A failed
CommitUploadis now retried with backoff, and the node is rolled back once the retries are exhausted. A rolled back upload is marked failed with the reason and gives its size back only once. As with the decomposedfs sessions before, an upload is finished even if the client goes away, and a failed synchronous commit keeps the staged bytes.Review focus:
asyncconf.go: the retry defaultspostprocessing.go: rollback only after the last retry, quota released oncecoordinator.go: finishing detached from the request contextReview commit by commit: the first commit is the generic change, the following ones adapt the pkg decomposedfs fork and posix.
stacked on #947
Assisted by Claude Code (claude-opus-5-5): it adapted the changes, split them into this stack and wrote this description.