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

HORNETQ-1575 Fix new connection establishment after failure during failover #2132

Merged
merged 1 commit into from Oct 8, 2018

Conversation

gaohoward
Copy link
Member

In a live-backup scenario, when live is down and backup becomes live, clients
using HA Connection Factories can failover automatically. However if a
client decides to create a new connection by itself (as in camel jms case)
there is a chance that the new connection is pointing to the dead live
and the connection won't be successful. The reason is that if the old
connection is gone the backup will not get a chance to announce itself
back to client so it fails on initial connection.

The fix is to let CF remember the old topology and use it on any
initial connection attempts.

…ilover

In a live-backup scenario, when live is down and backup becomes live, clients
using HA Connection Factories can failover automatically. However if a
client decides to create a new connection by itself (as in camel jms case)
there is a chance that the new connection is pointing to the dead live
and the connection won't be successful. The reason is that if the old
connection is gone the backup will not get a chance to announce itself
back to client so it fails on initial connection.

The fix is to let CF remember the old topology and use it on any
initial connection attempts.
@gaohoward
Copy link
Member Author

@clebertsuconic Hi Clebert, can you review it? thx.

@clebertsuconic
Copy link
Member

@gaohoward did you run the whole testsuite on this? if you did just hit Rebase and merge yourself.

My only concern is the testsuite has no regressions on this case.

@gaohoward
Copy link
Member Author

@clebertsuconic I've carefully run and checked the test suite and I am very sure that it won't cause any regressions.

@gaohoward
Copy link
Member Author

@clebertsuconic ok I'll merge it. Thanks!

@gaohoward gaohoward merged commit 140fa08 into hornetq:2.3.25.x Oct 8, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants