Replies: 2 comments 2 replies
-
You can customize the condition that triggers connection recovery [1]. The default is [2] [3]. I don't know exactly what you're doing, but you should be careful not to trigger connection recovery to easily by changing the condition. [1] https://rabbitmq.github.io/rabbitmq-java-client/api/current/com/rabbitmq/client/ConnectionFactory.html#setConnectionRecoveryTriggeringCondition(java.util.function.Predicate) |
Beta Was this translation helpful? Give feedback.
-
Thanks. I am adding this check in the error as soft errors are channel errors. I am closing the connection and channel. The application will recover from another code path. Is that okay? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi All
Automatic recovery has limitations as per official blog. How do I Identify channel-level exceptions in code?
Can I check if it's not a hard error in the shutdownSignalException and then attempt to create a new connection as mentioned here?
THanks
Guru
Beta Was this translation helpful? Give feedback.
All reactions