Conversation
Signed-off-by: yongman <[email protected]>
21cbeca to
04c77d2
Compare
Signed-off-by: yongman <[email protected]>
04c77d2 to
45b5fae
Compare
|
It seems that if there is still no leader when read through PD server, we would all the same get the no leader error. How about try to handle this situation uniformly by (It's likely that some related codes need to be changed too as this error is raised at |
|
@pingyu Thanks for your advise. It's not enough just handling the This seems to require lots of modifications, which could take a lot of time and introduce more risks. Moreover, the logic of the application should have the ability to retry and backoff during handling this error, so just refresh the region cache seems reasonable. |
When we create client during tikv-server startup and the region has no leader been elected yet, the region cache in client may be stale with no leader.
It will cause the region access return no leader error until the region id_ver changed.