-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
kvconnectorccl: allow secondary tenants to prefetch range lookups #92265
kvconnectorccl: allow secondary tenants to prefetch range lookups #92265
Conversation
@nvanbenschoten are you willing to be the victim here? |
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
@knz maybe you'd be interested in reviewing this? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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)
TFTR!
I'll leave that for a later change. I do think it's reasonable. bors r+ |
bors r+ |
Build failed (retrying...): |
Build succeeded: |
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