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)

close #8962

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

Co-authored-by: ti-chi-bot[bot] <108142056+ti-chi-bot[bot]@users.noreply.github.com>
  • Loading branch information
okJiang and ti-chi-bot[bot] authored Jan 6, 2025
1 parent 41919ad commit 6a0ed86
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions client/servicediscovery/pd_service_discovery.go
Original file line number Diff line number Diff line change
Expand Up @@ -509,8 +509,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 6a0ed86

Please sign in to comment.