Make local error since non-fatal for now.

Signed-off-by: Derek Collison <derek@nats.io>
This commit is contained in:
Derek Collison
2022-10-25 16:56:10 -07:00
parent aa52c2fecf
commit 2241ad089e

View File

@@ -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()