Robbie Gemmell created QPIDJMS-60:
-------------------------------------

             Summary: using 'nested options' causes issues when adding/removing 
a URI from the pool object
                 Key: QPIDJMS-60
                 URL: https://issues.apache.org/jira/browse/QPIDJMS-60
             Project: Qpid JMS
          Issue Type: Bug
          Components: qpid-jms-client
    Affects Versions: 0.2.0
            Reporter: Robbie Gemmell


The failover provider allows adding and removing URIs from the FailoverUriPool 
object. This support is used by the Discovery layer to update the applicable 
URIs. The methods may not have the intended effect if there are 'nested 
options' in use however.

The add method on the pool manipulates the given URI by adding any 'nest 
options' to it before insertion. It does this after checking the original URI 
wasnt already in the pool. That probably means that if there are nested options 
then adding the same URI again will insert a new entry when it wouldnt be 
expected to.

The remove method does not manipulate the given URI, so if it doesnt have the 
nested options applied to it already then it wont actually get removed from the 
list.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@qpid.apache.org
For additional commands, e-mail: dev-h...@qpid.apache.org

Reply via email to