-
Notifications
You must be signed in to change notification settings - Fork 74
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
#75 use a connection factory with automatic recovery disabled by default #82
Conversation
@jhalterman I think this is good to be merged. Should a new (point?) release be produced as well? |
@jhalterman sorry, any thoughts? If you have absolutely no time for Lyra, can you add me as a project owner so that I can at least merge small PRs? |
Anything new on this? |
I'm trying to reach out to the maintainer via means other than GitHub to obtain the permissions so that user PRs like this one can be merged quickly. |
@michaelklishin I suggest to put an Assertion when the connection is been created, see my PR. |
@@ -49,7 +49,7 @@ private ConnectionOptions(ConnectionOptions options) { | |||
nioParams = options.nioParams; | |||
useNio = options.useNio; | |||
|
|||
factory = new ConnectionFactory(); | |||
factory = makeConnectionFactory(); | |||
factory.setAutomaticRecoveryEnabled(options.factory.isAutomaticRecoveryEnabled()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Small, but I guess this setter is no longer needed here
Does the main README and it's examples need to be updated to reflect that automatic recovery is disabled by default in 0.5.5? Also, if I had been using a recovery policy, should I remove that from my config because recovery is now disabled? |
Java client's automatic recovery is disabled by default, not Lyra's. There's already a warning in the readme to make sure automatic recovery is not enabled for both libraries.
Disabling automatic recovery in the underlying Java client should not affect Lyra's recovery policy. Please note this project is no longer maintained. |
#75