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

allocator: fix panic when accessing nil store descriptor #96668

Merged
merged 1 commit into from
Feb 6, 2023

Conversation

aliher1911
Copy link
Contributor

Previously allocator was trying to update store descriptor counters on unitialized stores. Instead of checking if detail is nil which should never happen, it should check if descriptor in detail is not nil as it is only eventually populated by gossip.

Release note: None

Fixes #96654

Previously allocator was trying to update store descriptor counters
on unitialized stores. Instead of checking if detail is nil which
should never happen, it should check if descriptor in detail is not
nil as it is only eventually populated by gossip.

Release note: None
@aliher1911 aliher1911 requested a review from kvoli February 6, 2023 18:37
@aliher1911 aliher1911 requested a review from a team as a code owner February 6, 2023 18:37
@blathers-crl
Copy link

blathers-crl bot commented Feb 6, 2023

It looks like your PR touches production code but doesn't add or edit any test code. Did you consider adding tests to your PR?

🦉 Hoot! I am a Blathers, a bot for CockroachDB. My owner is dev-inf.

@cockroach-teamcity
Copy link
Member

This change is Reviewable

@aliher1911
Copy link
Contributor Author

bors r=kvoli

@aliher1911 aliher1911 self-assigned this Feb 6, 2023
@craig
Copy link
Contributor

craig bot commented Feb 6, 2023

Build failed (retrying...):

@craig
Copy link
Contributor

craig bot commented Feb 6, 2023

Build succeeded:

@craig craig bot merged commit a0f8d9b into cockroachdb:master Feb 6, 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.

storepool can panic if relocation happens before gossip update.
3 participants