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

kvserver: check lease rebalance target exists in cached storelist #94723

Merged
merged 1 commit into from
Jan 4, 2023

Conversation

kvoli
Copy link
Collaborator

@kvoli kvoli commented Jan 4, 2023

From #91593 it was possible for a new lease target to have its store descriptor dereferenced despite not existing in a list of candidate stores earlier.

This patch resolves the dereference.

fixes: #94688

Release note: None

@kvoli kvoli requested a review from a team as a code owner January 4, 2023 20:40
@cockroach-teamcity
Copy link
Member

This change is Reviewable

@kvoli kvoli self-assigned this Jan 4, 2023
@kvoli kvoli requested a review from andrewbaptist January 4, 2023 20:40
From cockroachdb#91593 it was possible for a new lease target to have its store
descriptor dereferenced despite not existing in a list of candidate
stores earlier.

This patch resolves the dereference.

fixes: cockroachdb#94688

Release note: None
@kvoli kvoli force-pushed the 230104.sr-descriptor-deref branch from 94ea6ef to 39e86ad Compare January 4, 2023 22:01
@kvoli kvoli requested a review from erikgrinaker January 4, 2023 22:23
@kvoli
Copy link
Collaborator Author

kvoli commented Jan 4, 2023

TYFTR

bors r=erikgrinaker

@craig
Copy link
Contributor

craig bot commented Jan 4, 2023

Build succeeded:

@craig craig bot merged commit cb3d6db into cockroachdb:master Jan 4, 2023
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.

roachtest: decommissionBench/nodes=4/cpu=16/warehouses=1000 failed
3 participants