Tso client is not ready after create PD client #8962
Labels
affects-7.5
This bug affects the 7.5.x(LTS) versions.
affects-8.1
This bug affects the 8.1.x(LTS) versions.
affects-8.5
This bug affects the 8.5.x(LTS) versions.
severity/major
type/bug
The issue is confirmed as a bug.
Enhancement Task
If
getClusterInfo
fails due to the network problem, the tso client will not be initiated. In this way, if the caller calls tso related API, likeGetMinTS()
, it will reporttso client is nil
error.pd/client/servicediscovery/pd_service_discovery.go
Lines 512 to 514 in 5ad4301
pd/client/servicediscovery/pd_service_discovery.go
Lines 857 to 883 in 5ad4301
We can apply retry to this function.
The text was updated successfully, but these errors were encountered: