Skip to content

Commit

Permalink
go/storage/client: Don't treat "no nodes" as a permanent error
Browse files Browse the repository at this point in the history
  • Loading branch information
kostko committed Mar 26, 2020
1 parent f72c3ea commit 8d42bde
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions go/storage/client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -302,6 +302,10 @@ func (b *storageClientBackend) readWithClient(
b.logger.Error("readWithClient: no connected nodes for runtime",
"runtime_id", ns,
)
if numRetries < maxRetries {
numRetries++
return ErrStorageNotAvailable
}
return backoff.Permanent(ErrStorageNotAvailable)
}

Expand Down

0 comments on commit 8d42bde

Please sign in to comment.