mirror of
https://github.com/gogrlx/nats-server.git
synced 2026-04-02 03:38:42 -07:00
Make local error since non-fatal for now.
Signed-off-by: Derek Collison <derek@nats.io>
This commit is contained in:
@@ -6636,8 +6636,8 @@ func (mset *stream) processClusteredInboundMsg(subject, reply string, hdr, msg [
|
||||
// TODO(dlc) - Make this a limit where we drop messages to protect ourselves, but allow to be configured.
|
||||
const warnThreshold = 10_000
|
||||
if mset.clseq-lseq > warnThreshold {
|
||||
err := fmt.Errorf("JetStream stream '%s > %s' has high message lag", jsa.acc().Name, mset.cfg.Name)
|
||||
s.RateLimitWarnf(err.Error())
|
||||
lerr := fmt.Errorf("JetStream stream '%s > %s' has high message lag", jsa.acc().Name, mset.cfg.Name)
|
||||
s.RateLimitWarnf(lerr.Error())
|
||||
}
|
||||
mset.clMu.Unlock()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user