Skip to content

feat(upload): name the space and node when a blob commit fails - #978

Merged
butonic merged 1 commit into
opencloud-eu:workpackagesfrom
dragonchaser:backport-wp1-733
Nov 9, 2026
Merged

butonic merged 1 commit into
opencloud-eu:workpackagesfrom
dragonchaser:backport-wp1-733

Conversation

@dragonchaser

Copy link
Copy Markdown
Member

Retry failed blob commits with capped backoff and recover uploads to a retryable state without leaving them stuck in processing.

The retry log lines in finishAsync only carried the upload id. They now
also name the space and the node, so a failing commit can be matched to
the file without digging up the session first. The last attempt used to
break out of the loop silently, it now logs that we give up, so the log
shows when the retries are exhausted and the node gets rolled back.

The new specs also pin the backoff cap: a huge configured backoff is
clamped to maxCommitRetryBackoff, and a cancelled context ends the wait.

Co-authored-by: Michal Klos <[email protected]>
Assisted-by: Claude Code:claude-opus-5-5
Signed-off-by: Jörn Friedrich Dreyer <[email protected]>
@butonic butonic changed the title Recover uploads after failed blob commits - #969 feat(upload): name the space and node when a blob commit fails Nov 9, 2026
@butonic

butonic commented Nov 9, 2026 •

Copy link
Copy Markdown
Member

I cut this down to the log fields. The rest of owncloud/reva 733 is already on workpackages: #948 ports owncloud/reva 746, which is upstream's own port of #733 into the coordinator (retry with capped backoff, rollback on exhaustion, reva_upload_sessions_commit_failed).

The detached commit with the commitLimiter is not ported on purpose. Upstream dropped it together with the legacy consumer in owncloud/reva 721 and did not bring it back in #746. On the coordinator it breaks the per-upload ordering of events: a CleanUpload or RestartPostprocessing would be handled while the commit is still waiting in its backoff, rolling the node back twice or running two CommitUpload for the same session. It also spawns a goroutine per event before taking a slot, so nothing holds back new events while commits are slow, and events already taken off the stream are lost on a restart.

What is left: the retry log lines carry spaceid and nodeid, the last attempt logs that we give up, plus specs for the log fields and the backoff cap.

@butonic
butonic marked this pull request as ready for review November 9, 2026 16:26
@butonic butonic added the Type:Maintenance E.g. technical debt, packaging, etc. label Nov 9, 2026
@butonic
butonic merged commit c5a650f into opencloud-eu:workpackages Nov 9, 2026
20 checks passed
butonic added a commit to opencloud-eu/opencloud that referenced this pull request Nov 9, 2026
Picks up opencloud-eu/reva#978: a failed blob
commit now logs the space and node id, and the last attempt logs that
we give up. This runs the rest of the `owncloud/reva#733` port through
the opencloud CI.

Assisted-by: Claude Code:claude-opus-5-5
Signed-off-by: Jörn Friedrich Dreyer <[email protected]>
butonic added a commit to opencloud-eu/opencloud that referenced this pull request Nov 12, 2026
Picks up opencloud-eu/reva#978: a failed blob
commit now logs the space and node id, and the last attempt logs that
we give up. This runs the rest of the `owncloud/reva#733` port through
the opencloud CI.

Assisted-by: Claude Code:claude-opus-5-5
Signed-off-by: Jörn Friedrich Dreyer <[email protected]>
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