mirror of
https://github.com/gogrlx/nats-server.git
synced 2026-04-02 03:38:42 -07:00
Merge pull request #3985 from nats-io/oor-raft
Only process out of resources condition from raft layer if err matches explicitly.
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user