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

release-19.1: storage: don't panic on absent store in StorePool.getStoreListFromIDs #40678

Merged

Conversation

nvanbenschoten
Copy link
Member

Backport 1/1 commits from #40645.

/cc @cockroachdb/release


Fixes #40598.

The store ID filter is passed to the StorePool from outside of the lock,
so it's possible that the removal of the store from the StorePool raced
with the goroutine calling getStoreListFromIDs. This should be handled
by ignoring the StoreID, which is already the case if a store is found
with the status storeStatusDead, storeStatusUnknown, or
storeStatusDecommissioning.

Will need to be backported to 19.1 and 2.1.

Release note: None

Fixes cockroachdb#40598.

The store ID filter is passed to the StorePool from outside of the lock,
so it's possible that the removal of the store from the StorePool raced
with the goroutine calling getStoreListFromIDs. This should be handled
by ignoring the StoreID, which is already the case if a store is found
with the status `storeStatusDead`, `storeStatusUnknown`, or
`storeStatusDecommissioning`.

Will need to be backported to 19.1 and 2.1.

Release note: None
@nvanbenschoten nvanbenschoten requested review from andreimatei and a team September 11, 2019 17:19
@cockroach-teamcity
Copy link
Member

This change is Reviewable

@andreimatei
Copy link
Contributor

andreimatei commented Sep 11, 2019 via email

@nvanbenschoten nvanbenschoten merged commit e571ef0 into cockroachdb:release-19.1 Sep 11, 2019
@nvanbenschoten nvanbenschoten deleted the backport19.1-40645 branch September 11, 2019 18:20
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.

3 participants