-
Notifications
You must be signed in to change notification settings - Fork 53
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
KV watch functionality fails when NATS server restarts #688
Comments
The watcher is R1, so when your server restarts it is gone. There's no option for listening on the idle heartbeats - so that means that the watcher just stalls.... Let me see what I can do |
Thanks for your reply! Let me give you some context. For every NATS server release, we expect to follow the changes and upgrade the NATS to the latest release, but currently, it affects clients that watch updates on KV. It would be great to handle that situation. Would you have a workaround in mind? |
but of course - the question is how to onboard the change - looking at it. |
…use the server would report the consumer as existing [FIX] [JS] [KV] watcher reset if successful, could still get heartbeat missing reports which would cause the ordered consumer to reset when it didn't need to. Fix #688
Observed behavior
When watching for KV updates and the NATS server restarts, the client reconnects successfully but API throws the error:
Debug logs show that it tries to reconnect twice, with the same request data, when the watch method has been called.
Expected behavior
It should reconnect and continue receiving KV updates
Server and client version
nats-server 2.10.14
nats.js 2.22.0
Host environment
Unix OS
Steps to reproduce
From the KV example, the code to reproduce looks like:
{"type":"io.nats.jetstream.api.v1.consumer_create_response","error":{"code":400,"err_code":10013,"description":"consumer name already in use"}}
Any ideas? Thanks!
The text was updated successfully, but these errors were encountered: