Skip to content

backupccl: fix a bug in routing scattered ranges#63875

Merged
craig[bot] merged 1 commit intocockroachdb:masterfrom
pbardea:range-fix
Apr 22, 2021
Merged

backupccl: fix a bug in routing scattered ranges#63875
craig[bot] merged 1 commit intocockroachdb:masterfrom
pbardea:range-fix

Conversation

@pbardea
Copy link
Copy Markdown
Contributor

@pbardea pbardea commented Apr 19, 2021

This change fixes a bug in the planning of the restore DistSQL flow. The
ordering of the source router slots did not match the order that the
streams were added to the range router. This meant that the range router
could mis-direct rows in the flow to the incorrect node.

Ever after this change, it appears that a lot of AddSSTables are not
handled locally and so the release note does not indicate any
performance improvement.

Release note: None

This change fixes a bug in the planning of the restore DistSQL flow. The
ordering of the source router slots did not match the order that the
streams were added to the range router. This meant that the range router
could mis-direct rows in the flow to the incorrect node.

Ever after this change, it appears that a lot of AddSSTables are not
handled locally and so the release note does not indicate any
performance improvement.

Release note: None
@pbardea pbardea requested review from a team and adityamaru April 19, 2021 20:00
@cockroach-teamcity
Copy link
Copy Markdown
Member

This change is Reviewable

Copy link
Copy Markdown
Contributor

@adityamaru adityamaru left a comment

Choose a reason for hiding this comment

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

Reviewed 1 of 1 files at r1.
Reviewable status: :shipit: complete! 0 of 0 LGTMs obtained (waiting on @pbardea)

@adityamaru
Copy link
Copy Markdown
Contributor

Nice catch!

@pbardea
Copy link
Copy Markdown
Contributor Author

pbardea commented Apr 22, 2021

TFTR
bors r+

@craig
Copy link
Copy Markdown
Contributor

craig bot commented Apr 22, 2021

Build succeeded:

@craig craig bot merged commit ee8b38e into cockroachdb:master Apr 22, 2021
craig bot pushed a commit that referenced this pull request May 17, 2021
64656: release-21.1: improve restore performance consistency r=dt a=pbardea

Backport:
  * 2/2 commits from "backupccl: rework split and scatter mechanism" (#63471)
  * 1/1 commits from "backupccl: fix a bug in routing scattered ranges" (#63875)
  * 1/1 commits from "backupccl: create more chunks on larger clusters" (#64067)

Please see individual PRs for details.

/cc @cockroachdb/release

Added do-not-merge label until release-21.1 opens for 21.1.1 backports once the release is out.


Co-authored-by: Paul Bardea <pbardea@gmail.com>
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