Ephemeral Jetstream subscription (KeyValueWatch) does not seem to reconnect when nats restarts. #924
Unanswered
GrafBlutwurst
asked this question in
Q&A
Replies: 1 comment 3 replies
-
So the behavior for the ephemeral is correct. If the server restarts, the ephemeral is gone. The behavior during kv should be that the watcher makes a new subscription. I'll take a look into this. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi everyone,
I am observing heartbeat alerts on the inbox subscription for my key value watch after nats restarts. After some breakpoints and some wireshark I think it's due to that fact that it's an ephemeral consumer and the consumer is not recreated on a reconnect. Rather only the subscription to the delivery inbox is resubmitted.
That also tracks with the what we see using the nats cli when looking at consumers for the KV store which after the restart and successful reconnect sits still at 0.
Is this intended behaviour and we're using the library wrong or is there an issue with ephemeral JS consumers?
Beta Was this translation helpful? Give feedback.
All reactions