-
Notifications
You must be signed in to change notification settings - Fork 58
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Jetstream throws debug messages after resuming from Hibernation. #544
Comments
So when it comes back, the consume method isn't yielding anymore messages? not sure how to replicate this. I can maybe suspend the process and see what happens. |
yes, no more message. Sample Code
|
are you seeing any exceptions? Could you wrap |
No exception. I am putting in try catch on in |
👍
Depends on how you're injecting NatsConnection. Have a look at the NATS.Extensions.Microsoft.DependencyInjection package. |
I am using that nuget package already. |
is it maybe the order of your build statements i.e. you add nats first then configure logging? would that make a difference? |
The the try and catch on the foreach, still getting the same error. I think it is due to state where disconnect and connect to Nats server when it comes out of hibernation that is causing the problem. This also happens to request/reply where it will say no responder. |
coincidently there is a bug fix PR in review which might be the reason for this: |
I hope the fix I mentioned above fixes this issue. we just released it in v2.3.2: https://github.com/nats-io/nats.net.v2/releases/tag/v2.3.2 |
Updated the Nuget and running Test, Will report back the result later. |
Observed behavior
After getting out of hibernation (Windows 10) where I have a Jetstream Consumer, sometimes I get the following error. It cannot be reliably replicated. The code that got triggered here.
The Nats server and the Windows 10 client are running on different machine in a LAN network.
Expected behavior
Continue to work.
Server and client version
Nats Server v2.10.16
Nats Client v2.2.3
Host environment
Nats Server Running on Ubuntu Linux 20.04 and running 24hrs.
Steps to reproduce
No response
The text was updated successfully, but these errors were encountered: