Robbie Gemmell created QPIDJMS-58:
-------------------------------------
Summary: when a connection redirect error is received, the
original connection details will be used first
Key: QPIDJMS-58
URL: https://issues.apache.org/jira/browse/QPIDJMS-58
Project: Qpid JMS
Issue Type: Bug
Components: qpid-jms-client
Affects Versions: 0.2.0
Reporter: Robbie Gemmell
Fix For: 0.3.0
When the client is using the failover layer and receives a connection redirect
error from the peer, it will try to reconnect to the same connection details
first before using the newly added uri details on subsequent reconnect attempts.
I noticed this due to
FailoverRedirectTest#testFailoverHandlesRemotelyEndConnectionWithRedirection
failing because the connection to the 'backup peer' was never completed after
it was redirected by the 'rejecting peer'. The logs show that the second
attempt was being made to the 'rejecting peer' and never completed. That is
presumably because the test peer is only capable of ever accepting a single
connection, but doesnt unbind the server socket after doing so and instead only
does so when the peer is shut down or the client socket read loop exits.
The test presumably passes typically because the the test peer usually wins
race to close the server socket before the next connect attempt is made,
leading it to fail and cause the client to try the next URI, the details given
by the original redirect error.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]