-
Notifications
You must be signed in to change notification settings - Fork 133
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
[EJBCLIENT-309] Add expiration for failed connections in discovery provider #359
Conversation
@dmlloyd I'm unsure about hard coding timeout instead of using a property to configure it. Wdyt about this, David? |
Yeah we don't want to hard code values. Also currentTimeMillis should not be used (use nanoTime instead). |
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.
Besides the hard code, can you please create a Jira? Thanks a lot!
src/main/java/org/jboss/ejb/protocol/remote/RemotingEJBDiscoveryProvider.java
Outdated
Show resolved
Hide resolved
src/main/java/org/jboss/ejb/protocol/remote/RemotingEJBDiscoveryProvider.java
Outdated
Show resolved
Hide resolved
|
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.
@ivagulin please add as well [EJBCLIENT-309] to the commit messages, then I'll merge this. Thanks!
adb40f3
to
8472d22
Compare
- add expiration for failed connections in discovery provider
- make recheck interval configurable - use nanoTime
8472d22
to
0009231
Compare
RFC pull-request to address following scenario:
Steps
Actual Result
all calls from ejb-remote node fails with "connection refused". RemotingEJBDiscoveryProvider not try to establish connection to nodeB
Expected Result
ejb calls working. RemotingEJBDiscoveryProvider try to establish connection to nodeB
jira reference
https://issues.jboss.org/browse/EJBCLIENT-309