Skip to content

Commit

Permalink
fix: table entry do not refresh when create connection fail
Browse files Browse the repository at this point in the history
  • Loading branch information
GroundWu committed Jun 12, 2024
1 parent 6541a94 commit f165ebf
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions route/route_info.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,9 @@ func (i *ObRouteInfo) getTableWithRetry(ctx context.Context, server *ObServerAdd
for {
select {
case <-ctx.Done():
err := i.refreshTableLocations(&server.tcpAddr)
log.Warn("[Runtime]", nil, "get table fail and try to refresh table location ",
log.String("server", server.String()), log.String("err", err.Error()))
return nil, errors.Errorf("get table, server:%s", server.String())
default:
t, ok = i.tableRoster.Get(server.tcpAddr)
Expand Down

0 comments on commit f165ebf

Please sign in to comment.