Skip to content
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

Merged
merged 1 commit into from
Oct 4, 2017

Conversation

basert
Copy link
Contributor

@basert basert commented Sep 11, 2017

#75

@michaelklishin
Copy link
Collaborator

@jhalterman I think this is good to be merged. Should a new (point?) release be produced as well?

@michaelklishin
Copy link
Collaborator

@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?

@basert
Copy link
Contributor Author

basert commented Sep 30, 2017

Anything new on this?

@michaelklishin
Copy link
Collaborator

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.

@DimaGolomozy
Copy link

@michaelklishin
what about this code ConnectionOptions.java#L39-L46, The user can passes the ConnectionFactory with automaticRecovery flag enabled and it will not be checked.

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());

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

@austin48
Copy link

austin48 commented Sep 14, 2019

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?

@acogoluegnes
Copy link
Collaborator

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?

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.

Also, if I had been using a recovery policy, should I remove that from my config because recovery is now disabled?

Disabling automatic recovery in the underlying Java client should not affect Lyra's recovery policy.

Please note this project is no longer maintained.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants