Go: add error logs when fail to init infinity (#18235)

Signed-off-by: Jin Hai <haijin.chn@gmail.com>
This commit is contained in:
Jin Hai
2026-08-13 20:17:53 +08:00
committed by GitHub
parent 3ce1b9be3d
commit e2acf3aebb
2 changed files with 29 additions and 26 deletions

View File

@@ -201,12 +201,14 @@ func (c *infinityClient) WaitForHealthy(ctx context.Context, timeout time.Durati
conn, release, err := c.checkoutConn(ctx, "WaitForHealthy")
if err != nil {
common.Warn("Failed to get Infinity connection", zap.Error(err))
time.Sleep(5 * time.Second)
continue
}
res, err := conn.ShowCurrentNode()
release()
if err != nil {
common.Warn("Failed to check Infinity health", zap.Error(err))
time.Sleep(5 * time.Second)
continue
}