Skip to content

Commit

Permalink
Partial cache errors are also not critical write errors
Browse files Browse the repository at this point in the history
Signed-off-by: Derek Collison <derek@nats.io>
  • Loading branch information
derekcollison committed Mar 2, 2023
1 parent c07087c commit 2beca1a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion server/raft.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 2beca1a

Please sign in to comment.