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

backupccl: direct spans after split and scatter #52241

Merged
merged 1 commit into from
Aug 4, 2020

Conversation

pbardea
Copy link
Contributor

@pbardea pbardea commented Aug 3, 2020

The AdminScatter request sent in the SplitAndScatterProcessor returns
the lease information of the range after the scatter requst has
completed. The SplitAndScatterProcessor now looks at this field to
properly direct the spans to the appropriate RestoreData processor.

Release note: None.

@pbardea pbardea requested review from dt and a team August 3, 2020 13:08
@cockroach-teamcity
Copy link
Member

This change is Reviewable

@pbardea pbardea force-pushed the split-and-scatter-dest branch from 3320ef9 to 9f81d95 Compare August 3, 2020 16:28
@pbardea
Copy link
Contributor Author

pbardea commented Aug 3, 2020

Updated with a comment about why we only look at the first range. I also snuck in a change to ensure that when the chunks are split and scattered their leases are randomized. That part of the request was lost during the initial re-write to the processor.

I would appreciate another look - thanks!

The AdminScatter request sent in the SplitAndScatterProcessor returns
the lease information of the range after the scatter requst has
completed. The SplitAndScatterProcessor now looks at this field to
properly direct the spans to the appropriate RestoreData processor.

Release note: None.
@pbardea pbardea force-pushed the split-and-scatter-dest branch from 9f81d95 to 2b5b45c Compare August 3, 2020 18:21
@pbardea
Copy link
Contributor Author

pbardea commented Aug 4, 2020

TFTR!
bors r+

@craig
Copy link
Contributor

craig bot commented Aug 4, 2020

Build failed (retrying...):

@craig
Copy link
Contributor

craig bot commented Aug 4, 2020

Build succeeded:

@craig craig bot merged commit 6305432 into cockroachdb:master Aug 4, 2020
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.

3 participants