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 a737753
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions .changelog/2785.bugfix.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
go/storage/client: Don't treat "no nodes" as a permanent error
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 a737753

Please sign in to comment.