Skip to content

Comments

jobs: refactor JobUpdater started function to not clobber job progress#164165

Draft
andrew-r-thomas wants to merge 1 commit intocockroachdb:masterfrom
andrew-r-thomas:fix-job-trace-id-progress-bug
Draft

jobs: refactor JobUpdater started function to not clobber job progress#164165
andrew-r-thomas wants to merge 1 commit intocockroachdb:masterfrom
andrew-r-thomas:fix-job-trace-id-progress-bug

Conversation

@andrew-r-thomas
Copy link
Contributor

Previously, jobs using ProgressStorage for progress updates would briefly drop down to 0 fraction_completed on resume, as the JobUpdater started function would clobber the job's progress in order to set the trace id. This patch refactors trace id updates to use message storage instead, and leave progress untouched.

Fixes: #164160

Release note: None

@trunk-io
Copy link
Contributor

trunk-io bot commented Feb 23, 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.

@cockroach-teamcity
Copy link
Member

This change is Reviewable

@andrew-r-thomas andrew-r-thomas force-pushed the fix-job-trace-id-progress-bug branch 2 times, most recently from 1030cd3 to 1e3f4cd Compare February 23, 2026 18:19
Previously, jobs using `ProgressStorage` for progress updates would
briefly drop down to 0 `fraction_completed` on resume, as the
`JobUpdater` `started` function would clobber the job's progress in
order to set the trace id. This patch refactors trace id updates to use
message storage instead, and leave progress untouched.

Fixes: cockroachdb#164160

Release note: None
@andrew-r-thomas andrew-r-thomas force-pushed the fix-job-trace-id-progress-bug branch from 1e3f4cd to dc6ac83 Compare February 23, 2026 18:53
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.

jobs: ProgressStorage based jobs incorrectly drop to 0 fraction_completed on resume

2 participants