Failed to read message: nats: connection closed #3133
Unanswered
static-moonlight
asked this question in
Q&A
Replies: 1 comment
-
Hey @static-moonlight, thank you for reporting this! I think that might happen because we're not checking https://pkg.go.dev/github.com/nats-io/nats.go#Subscription.IsValid here. I'll push a change with this fix when I get a chance, hopefully before the next release. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I implemented a simple pipeline to consume NATS messages and do something with them. This was done as a replacement of the NATS client to increase stability and reliability.
I was surprised when during my first test (shutdown the NATS server for a couple minutes and start it again), Redpanda Connect (RPC) will never automatically recover from that.
Even after the NATS server was online again for at least 10 minutes, RPC continues to print this error:
I don't see anything in the CLI help to tell RPC how to handle such errors (like trying to reconnect, or just quit the process, or something). I also can't see anything in the documentation for
nats_jetstream
about error handling or auto reconnect.I was under the impression that auto-reconnect in NATS is pretty much standard:
This is the important part of my pipeline config:
I could need some advice about how to increase resilience for this one.
I need one of this:
2 and 3 would take advantage of the container restart policy to implement auto-recovery.
Beta Was this translation helpful? Give feedback.
All reactions