Skip to content

fix(decomposedfs): let a newer upload take over the processing mark - #943

Merged
butonic merged 2 commits into
port-754from
port-662
Nov 4, 2026
Merged

butonic merged 2 commits into
port-754from
port-662

Conversation

@butonic

@butonic butonic commented Oct 29, 2026 •

Copy link
Copy Markdown
Member

Part of the upload coordinator stack, see #934.

Two uploads to the same file can overlap. MarkProcessing used to reject the newer upload with ResourceProcessing while the older one was still in postprocessing. A newer upload now takes over the node's processing mark: the last writer wins, and only the session that owns the mark clears it.

Review focus:

  • MarkProcessing in commit_upload.go (pkg fork) and upload.go (utils): is "last writer wins" safe when the older upload finishes later?
  • the specs for the overlapping case in upload_test.go / mark_processing_test.go

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

stacked on #942

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

@butonic
butonic added this pull request to stack #950 October 29, 2026 14:05
@butonic butonic added the Type:Maintenance E.g. technical debt, packaging, etc. label Oct 29, 2026
@butonic
butonic removed this pull request from stack #950 October 29, 2026 14:19
@butonic
butonic added this pull request to stack #952 October 29, 2026 14:19
@butonic
butonic force-pushed the port-662 branch 2 times, most recently from 95d3d3d to 59643ee Compare October 30, 2026 10:44
@butonic butonic changed the title port concurrent processing marks fix(decomposedfs): let a newer upload take over the processing mark Nov 3, 2026
@butonic
butonic force-pushed the port-662 branch 4 times, most recently from 7dfce90 to 713a854 Compare November 4, 2026 07:56
LarsJurgensen and others added 2 commits November 4, 2026 10:27
MarkProcessing in the pkg fork no longer refuses a node another session
marked: the last writer wins, and only the owning session can clear the
mark.

Assisted-by: Claude Code:claude-opus-5-5
Signed-off-by: Jörn Friedrich Dreyer <[email protected]>
@butonic
butonic merged commit 1168881 into workpackages Nov 4, 2026
19 checks passed
@butonic
butonic deleted the port-662 branch November 4, 2026 13:54
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