Skip to content

Commit

Permalink
adapt log print
Browse files Browse the repository at this point in the history
  • Loading branch information
GroundWu committed Jun 13, 2024
1 parent 28d8e2e commit 9921873
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions route/route_info.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,9 @@ func (i *ObRouteInfo) getTableWithRetry(ctx context.Context, server *ObServerAdd
for {
select {
case <-ctx.Done():
log.Warn("[Runtime]", nil, "catch ctx Done")
i.refreshTableLocations(&server.tcpAddr)
log.Warn("[Runtime]", nil, "get table fail and fail to refresh table location ",
log.Warn("[Runtime]", nil, "get table timeout and try to refresh table location ",
log.String("server", server.String()))
go i.refreshTableLocations(&server.tcpAddr)
return nil, errors.Errorf("get table, server:%s", server.String())
default:
t, ok = i.tableRoster.Get(server.tcpAddr)
Expand Down

0 comments on commit 9921873

Please sign in to comment.