Question: Handle Leadership Change in PullConsumers #965
Unanswered
ludusrusso
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Short answer I think would be to retry, but also 'Leadership Change' is a 409 status sent from the server and a temporary error that I think the client ought to handle internally similar to how 408 is being handled until the deadline expires: Lines 3319 to 3320 in 1714729 Lines 2450 to 2455 in 1714729 |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi guys, I'm running a nats jetstream cluster on kubernetes with the official helm chart and 3 replicas.
In some cases I notice an error of
Leadership Change
in pull consumer, here is an example code:Hi was wondering, which is the best way to handle this errors? Should I recreate the subscriber or I can just retry to Fetch?
Beta Was this translation helpful? Give feedback.
All reactions