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

multitenant: NewIterator connector infinite retry loop #99143

Merged
merged 1 commit into from
Mar 22, 2023
Merged

multitenant: NewIterator connector infinite retry loop #99143

merged 1 commit into from
Mar 22, 2023

Conversation

ecwall
Copy link
Contributor

@ecwall ecwall commented Mar 21, 2023

Fixes #98822

This change fixes an infinite retry loop in Connector.NewIterator that would occur when the GetRangeDescriptors stream returned an auth error. An example trigger would be passing in a span that was outside of the calling tenant's keyspace.

Now NewIterator correctly propagates auth errors up to the caller.

Release note: None

@ecwall ecwall requested review from knz, rafiss and arulajmani March 21, 2023 19:30
@ecwall ecwall requested a review from a team as a code owner March 21, 2023 19:30
@cockroach-teamcity
Copy link
Member

This change is Reviewable

@ecwall
Copy link
Contributor Author

ecwall commented Mar 21, 2023

bors r=stevendanna

@craig
Copy link
Contributor

craig bot commented Mar 21, 2023

🕐 Waiting for PR status (GitHub check) to be set, probably by CI. Bors will automatically try to run when all required PR statuses are set.

@ecwall ecwall added branch-release-23.1 Used to mark GA and release blockers, technical advisories, and bugs for 23.1 backport-23.1.x Flags PRs that need to be backported to 23.1 and removed branch-release-23.1 Used to mark GA and release blockers, technical advisories, and bugs for 23.1 labels Mar 21, 2023
@craig
Copy link
Contributor

craig bot commented Mar 21, 2023

GitHub status checks took too long to complete, so bors is giving up. You can adjust bors configuration to have it wait longer if you like.

@ecwall
Copy link
Contributor Author

ecwall commented Mar 22, 2023

bors r-

Fixes #98822

This change fixes an infinite retry loop in `Connector.NewIterator` that would
occur when the `GetRangeDescriptors` stream returned an auth error. An example
trigger would be passing in a span that was outside of the calling tenant's
keyspace.

Now `NewIterator` correctly propagates auth errors up to the caller.

Release note: None
@ecwall
Copy link
Contributor Author

ecwall commented Mar 22, 2023

bors r=stevendanna

@craig
Copy link
Contributor

craig bot commented Mar 22, 2023

Build succeeded:

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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

multitenant: key out of tenant keyspace bounds - infinite retry loop
3 participants