Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

backuppcl: pass finishesSpec field to resume span #120204

Merged
merged 2 commits into from
Mar 12, 2024

Conversation

msbutler
Copy link
Collaborator

PR #114268 broke the plumbing for the CompletedSpans metric which allows the backup coordinator to update the FractionCompleted metric. This patch fixes this bug by passing the finishesSpec field to the resume span.

Informs #120161

Release note: none

@msbutler msbutler requested review from dt and stevendanna March 11, 2024 13:46
@msbutler msbutler self-assigned this Mar 11, 2024
@msbutler msbutler requested review from a team as code owners March 11, 2024 13:46
@msbutler msbutler requested review from herkolategan and renatolabs and removed request for a team, herkolategan and renatolabs March 11, 2024 13:46
@cockroach-teamcity
Copy link
Member

This change is Reviewable

@msbutler msbutler added backport-23.1.x Flags PRs that need to be backported to 23.1 backport-23.2.x Flags PRs that need to be backported to 23.2. labels Mar 11, 2024
@msbutler msbutler force-pushed the butler-fix-fraction-completed branch from 2548eec to 4a4d4ae Compare March 11, 2024 13:53
Comment on lines 639 to 644
span: *resp.ResumeSpan,
firstKeyTS: resumeTS,
start: span.start,
end: span.end,
attempts: span.attempts,
lastTried: span.lastTried,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we reconsider our pattern her. Perhaps we should copy the whole struct and then reset the fields we want to reset.

Copy link
Collaborator Author

@msbutler msbutler Mar 11, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

perhaps in a follow up commit that doesn't get backported?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done.

@msbutler msbutler force-pushed the butler-fix-fraction-completed branch 4 times, most recently from 70f8213 to c23cff6 Compare March 11, 2024 13:57
PR cockroachdb#114268 broke the plumbing for the CompletedSpans metric which allows the
backup coordinator to update the FractionCompleted metric. This patch fixes
this bug by passing the finishesSpec field to the resume span.

Informs cockroachdb#120161

Release note: none
@msbutler msbutler force-pushed the butler-fix-fraction-completed branch from c23cff6 to 2707ed1 Compare March 11, 2024 14:04
This refactor makes the code less error prone, when adding a new field to
`spanAndTime`.

Release note: none

Epic: none
@msbutler
Copy link
Collaborator Author

TFTR!

bors r=dt

@craig
Copy link
Contributor

craig bot commented Mar 12, 2024

Build succeeded:

@craig craig bot merged commit 38880d9 into cockroachdb:master Mar 12, 2024
19 checks passed
Copy link

blathers-crl bot commented Mar 12, 2024

Encountered an error creating backports. Some common things that can go wrong:

  1. The backport branch might have already existed.
  2. There was a merge conflict.
  3. The backport branch contained merge commits.

You might need to create your backport manually using the backport tool.


error creating merge commit from 2707ed1 to blathers/backport-release-23.1-120204: POST https://api.github.com/repos/cockroachdb/cockroach/merges: 409 Merge conflict []

you may need to manually resolve merge conflicts with the backport tool.

Backport to branch 23.1.x failed. See errors above.


error creating merge commit from 2707ed1 to blathers/backport-release-23.2-120204: POST https://api.github.com/repos/cockroachdb/cockroach/merges: 409 Merge conflict []

you may need to manually resolve merge conflicts with the backport tool.

Backport to branch 23.2.x failed. See errors above.


🦉 Hoot! I am a Blathers, a bot for CockroachDB. My owner is dev-inf.

@dt
Copy link
Member

dt commented Mar 12, 2024

When you manually backport to 23.1, can you do 23.1.17-rc as well?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport-23.1.x Flags PRs that need to be backported to 23.1 backport-23.2.x Flags PRs that need to be backported to 23.2. T-disaster-recovery
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants