tikv / client-c

The C++ TiKV client used by TiFlash.
Apache License 2.0
40 stars 48 forks source link

handle rpc error when fetch cluster id from pd #170

Closed guo-shaoge closed 7 months ago

guo-shaoge commented 7 months ago

close: https://github.com/tikv/client-c/issues/169

When init cluster id, should also check error in rpc response, otherwise cluster id maybe zero mistakely.

Because PD will not set cluster id if got error, instead it put err msg in rpc response.Error. check here and here