kvconnectorccl: allow secondary tenants to prefetch range lookups#92265
Merged
craig[bot] merged 1 commit intocockroachdb:masterfrom Nov 22, 2022
Merged
Conversation
Contributor
Author
|
@nvanbenschoten are you willing to be the victim here? |
Member
This patch permits the tenant connector to request more than 0 ranges to be prefetched. In order to enable this, we add logic in the implementation of the RangeLookup RPC to filter any results which are not intended for this tenant. Fixes cockroachdb#91433 Release note: None
569d3a0 to
298b016
Compare
Contributor
Author
|
@knz maybe you'd be interested in reviewing this? |
knz
approved these changes
Nov 22, 2022
Contributor
knz
left a comment
There was a problem hiding this comment.
this is very good and helps much.
Could we trick this code to paper over #92072 by tweaking the reported EndKey when it's outside of the tenant's keyspace?
cc @ecwall you might find this interesting.
Reviewed 8 of 8 files at r1, all commit messages.
Reviewable status:complete! 1 of 0 LGTMs obtained (waiting on @nvanbenschoten)
Contributor
Author
|
TFTR!
I'll leave that for a later change. I do think it's reasonable. bors r+ |
Contributor
Author
|
bors r+ |
Contributor
|
Build failed (retrying...): |
Contributor
|
Build succeeded: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This patch permits the tenant connector to request more than 0 ranges to be prefetched. In order to enable this, we add logic in the implementation of the RangeLookup RPC to filter any results which are not intended for this tenant.
Fixes #91433
Release note: None