client-go icon indicating copy to clipboard operation
client-go copied to clipboard

missing check store state when get tiflash_mpp info

Open guo-shaoge opened this issue 2 years ago • 1 comments

https://github.com/tikv/client-go/blob/681fb6e537b5b114f07cbc9eb0d6564742a470aa/internal/locate/region_cache.go#L1832

Should also check store.state, otherwise may get tomestone or offline store. (s.GetState() == metapb.StoreState_Up)

guo-shaoge avatar Jun 23 '22 07:06 guo-shaoge

/assign @guo-shaoge

guo-shaoge avatar Jun 23 '22 07:06 guo-shaoge