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) (#8975)

close #8962

Signed-off-by: okJiang <819421878@qq.com>

Co-authored-by: okJiang <819421878@qq.com>
  • Loading branch information
ti-chi-bot and okJiang authored Jan 6, 2025
1 parent 28001fd commit ad8f2c2
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 @@ -505,8 +505,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(3)
Expand Down

0 comments on commit ad8f2c2

Please sign in to comment.