Skip to content

feat(upload): route PUT and TUS through the upload coordinator - #935

Merged
butonic merged 2 commits into
workpackagesfrom
port-714
Nov 4, 2026
Merged

butonic merged 2 commits into
workpackagesfrom
port-714

Conversation

@butonic

@butonic butonic commented Oct 29, 2026 •

Copy link
Copy Markdown
Member

Part of the upload coordinator stack, see #934.

We now have the coordinator itself: it initiates an upload (resolves the target, checks quota and locks), receives the bytes for PUT and via the TUS adapter, verifies checksums and finishes the upload either synchronously or by handing it to postprocessing. A session is marked processing once PrepareUpload ran. Nothing is wired to it yet, that happens in #947.

Review focus:

  • coordinator.go: InitiateUpload → Upload → finishUpload, and where PrepareUpload / CommitUpload are called
  • error paths: what is rolled back when prepare or commit fails
  • tus_adapter.go: the mapping between tusd and the coordinator

Review commit by commit: the first commit is the generic change, the following ones adapt the pkg decomposedfs fork and posix.

stacked on #934

Assisted by Claude Code (claude-opus-5-5): it adapted the changes, split them into this stack and wrote this description.

@butonic butonic changed the title port routing PUT and TUS through the upload coordinator feat(upload): route PUT and TUS through the upload coordinator Nov 3, 2026
Base automatically changed from port-703 to workpackages November 3, 2026 23:01
f-firas and others added 2 commits November 4, 2026 00:01
TouchFile only returns an error here, so the coordinator reads the
touched node back to learn its id and space owner or manager.
The coordinator persists the session after PrepareUpload, so it records
the processing status there. Listing uploads then reports the session as
processing while postprocessing runs.

Assisted-by: Claude Code:claude-opus-5-5
Signed-off-by: Jörn Friedrich Dreyer <[email protected]>
@butonic
butonic merged commit 0d6ffb2 into workpackages Nov 4, 2026
19 checks passed
@butonic
butonic deleted the port-714 branch November 4, 2026 06:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Type:Maintenance E.g. technical debt, packaging, etc.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants