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

[EJBCLIENT-309] Add expiration for failed connections in discovery provider #359

Merged
merged 2 commits into from
Feb 20, 2019

Conversation

ivagulin
Copy link

@ivagulin ivagulin commented Oct 4, 2018

RFC pull-request to address following scenario:

Steps

  1. having cluster of 2 nodes: nodeA and nodeB
  2. having ejb-remote client: clientNode
  3. nodeB is disabled
  4. start clientNode and make some ejb-remote calls (failedConnections will be initialized with nodeB)
  5. start nodeB
  6. shutdown nodeA
  7. make some more ejb-remote calls from clientNode

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

@fl4via
Copy link
Contributor

fl4via commented Nov 21, 2018

@dmlloyd I'm unsure about hard coding timeout instead of using a property to configure it. Wdyt about this, David?

@dmlloyd
Copy link
Member

dmlloyd commented Nov 21, 2018

Yeah we don't want to hard code values. Also currentTimeMillis should not be used (use nanoTime instead).

Copy link
Contributor

@fl4via fl4via left a 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!

@ivagulin ivagulin changed the title Add expiration for failed connections in discovery provider [EJBCLIENT-309] Add expiration for failed connections in discovery provider Jan 21, 2019
@ivagulin
Copy link
Author

  • issue added to pull-request summary
  • review comments fixed

Copy link
Contributor

@fl4via fl4via left a 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!

@ivagulin ivagulin force-pushed the failed-connections-expiration branch from adb40f3 to 8472d22 Compare February 7, 2019 21:17
Igor Vagulin added 2 commits February 8, 2019 00:18
- add expiration for failed connections in discovery provider
- make recheck interval configurable
- use nanoTime
@ivagulin ivagulin force-pushed the failed-connections-expiration branch from 8472d22 to 0009231 Compare February 7, 2019 21:18
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.

3 participants