Skip to content

backup: teach download job to report progress when nodes are unavailable#170866

Draft
andrew-r-thomas wants to merge 1 commit into
cockroachdb:masterfrom
andrew-r-thomas:or-download-progress
Draft

backup: teach download job to report progress when nodes are unavailable#170866
andrew-r-thomas wants to merge 1 commit into
cockroachdb:masterfrom
andrew-r-thomas:or-download-progress

Conversation

@andrew-r-thomas
Copy link
Copy Markdown
Contributor

This patch teaches the online restore download job to correctly report progress in the face of temporary node failures. Previously, the DownloadSpan rpc returning per-node errors would cause the job's core context group to be canceled, causing a retry to trigger before the job could report a progress update based on the SpanStats rpc. This patch adjusts the goroutines in these context groups to save per-node errors rather than returning them, and triggers a retry once the context group completes in that case, allowing the job to continue updating progress while some nodes error during an rpc fanout.

Epic: None

Release note: None

This patch teaches the online restore download job to correctly report
progress in the face of temporary node failures. Previously, the
`DownloadSpans` rpc returning per-node errors would cause the job's main
context group to be canceled, causing a retry to trigger before the job
could report a progress update based on the `SpanStats` rpc. This patch
adjust the goroutines in these context groups to save per-node errors
rather than returning them, and triggers a retry once the context group
completes in that case, allowing the job to continue updating progress
while some nodes error during an rpc fanout.

Epic: None

Release note: None
@trunk-io
Copy link
Copy Markdown
Contributor

trunk-io Bot commented May 24, 2026

Merging to master in this repository is managed by Trunk.

  • To merge this pull request, check the box to the left or comment /trunk merge below.

After your PR is submitted to the merge queue, this comment will be automatically updated with its status. If the PR fails, failure details will also be posted here

@cockroach-teamcity
Copy link
Copy Markdown
Member

This change is Reviewable

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants