Skip to content

Commit

Permalink
Merge pull request #3985 from nats-io/oor-raft
Browse files Browse the repository at this point in the history
Only process out of resources condition from raft layer if err matches explicitly.
  • Loading branch information
derekcollison committed Mar 23, 2023
2 parents cec1e15 + ec89823 commit 61556d9
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions server/raft.go
Expand Up @@ -3408,8 +3408,10 @@ func (n *raft) setWriteErrLocked(err error) {
}
n.werr = err

// For now since this can be happening all under the covers, we will call up and disable JetStream.
go n.s.handleOutOfSpace(nil)
if isOutOfSpaceErr(err) {
// For now since this can be happening all under the covers, we will call up and disable JetStream.
go n.s.handleOutOfSpace(nil)
}
}

// Capture our write error if any and hold.
Expand Down

0 comments on commit 61556d9

Please sign in to comment.