Open mvrhov opened 9 months ago
Hello @mvrhov, thank you for reporting the issue.
That does look like we're getting nil
info from the server - I'll investigate and let you know.
If it helps. There is a bunch of those in the NATS server log at the time of above crash. They start approximately 40s before crash. I did turn the feature flag of at the time those messages start in the NATS log, and turning feature off results in mass unsubscribe from multiple servers and multiple subjects.
[1] 2024/01/15 06:21:29.036589 [WRN] Internal subscription on "$JS.API.CONSUMER.CREATE.KV_STATUS.AV7oozAP3wLqzUtRQqMAUP" took too long: 2.105295582s
[1] 2024/01/15 06:21:29.036602 [WRN] X.Y.Z.W:37370 - cid:60 - Readloop processing time: 2.105367662s
[1] 2024/01/15 06:21:30.396007 [WRN] Internal subscription on "$JS.API.CONSUMER.CREATE.KV_STATUS.0jsgR82U" took too long: 3.156122306s
[1] 2024/01/15 06:21:30.396041 [WRN] Internal subscription on "$JS.API.CONSUMER.CREATE.KV_STATUS.0jsgR82U" took too long: 3.156166899s
Observed behavior
We are getting the following tack trace on some of our servers when we try to unsubscribe. I'd guess that
info.Config
is nil, but I'm unable to confirm.The relevant code from our side is.
Expected behavior
no panic
Server and client version
The client is 1.31, however the code in 1.32 is the same. Server 2.10.9
Host environment
No response
Steps to reproduce
I have no idea on how to reproduce this as it's also sporadic on our end.
edit: changed the server version from 2.10.8 to 2.10.9 (it automatically updated with our release , as we set the version in docker-compose to 2.10) as this is the version we were running