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

PdOracle leak if other error happens in NewKVStore

Open lance6716 opened this issue 3 months ago • 0 comments

https://github.com/tikv/client-go/blob/0fdd25559b3891ad9253f647b712072b889b3b4f/tikv/kv.go#L319-L326

forget to call o.Close and other objects' Close. It will cause some error log like [pd.go:474] ["updateTS error"] and [region_cache.go:763] ["refresh full store list failed"]

lance6716 avatar Sep 24 '25 07:09 lance6716