From a737753676eda34a41ab67992740f05a176fafe6 Mon Sep 17 00:00:00 2001 From: Jernej Kos Date: Thu, 26 Mar 2020 10:27:58 +0100 Subject: [PATCH] go/storage/client: Don't treat "no nodes" as a permanent error --- .changelog/2785.bugfix.md | 1 + go/storage/client/client.go | 4 ++++ 2 files changed, 5 insertions(+) create mode 100644 .changelog/2785.bugfix.md diff --git a/.changelog/2785.bugfix.md b/.changelog/2785.bugfix.md new file mode 100644 index 00000000000..9e41f54382f --- /dev/null +++ b/.changelog/2785.bugfix.md @@ -0,0 +1 @@ +go/storage/client: Don't treat "no nodes" as a permanent error diff --git a/go/storage/client/client.go b/go/storage/client/client.go index 81f1468a7a4..6d54321ca41 100644 --- a/go/storage/client/client.go +++ b/go/storage/client/client.go @@ -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) }