Skip to content

Commit

Permalink
client: retry checkServiceModeChanged to make tso client work normal (#…
Browse files Browse the repository at this point in the history
…8963) (#8976)

close #8962

Signed-off-by: ti-chi-bot <[email protected]>
Signed-off-by: okJiang <[email protected]>

Co-authored-by: okJiang <[email protected]>
  • Loading branch information
ti-chi-bot and okJiang authored Jan 6, 2025
1 parent 9c37e67 commit c45240b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions client/pd_service_discovery.go
Original file line number Diff line number Diff line change
Expand Up @@ -204,8 +204,9 @@ func (c *pdServiceDiscovery) Init() error {
}
}

if err := c.checkServiceModeChanged(); err != nil {
log.Warn("[pd] failed to check service mode and will check later", zap.Error(err))
if err := c.initRetry(c.checkServiceModeChanged); err != nil {
c.cancel()
return err
}

c.wg.Add(2)
Expand Down

0 comments on commit c45240b

Please sign in to comment.