From 2beca1a2a6c33d0f39ca4c73bdb9572abb31f079 Mon Sep 17 00:00:00 2001 From: Derek Collison Date: Wed, 1 Mar 2023 22:52:02 -0800 Subject: [PATCH] Partial cache errors are also not critical write errors Signed-off-by: Derek Collison --- server/raft.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/server/raft.go b/server/raft.go index aa3151ee2dc..6a4ed96b787 100644 --- a/server/raft.go +++ b/server/raft.go @@ -3385,7 +3385,12 @@ func (n *raft) setWriteErrLocked(err error) { } // Ignore non-write errors. if err != nil { - if err == ErrStoreClosed || err == ErrStoreEOF || err == ErrInvalidSequence || err == ErrStoreMsgNotFound || err == errNoPending { + if err == ErrStoreClosed || + err == ErrStoreEOF || + err == ErrInvalidSequence || + err == ErrStoreMsgNotFound || + err == errNoPending || + err == errPartialCache { return } // If this is a not found report but do not disable.