You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by "Robbie Gemmell (JIRA)" <ji...@apache.org> on 2015/05/29 13:16:18 UTC

[jira] [Created] (QPIDJMS-60) using 'nested options' causes issues when adding/removing a URI from the pool object

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-unsubscribe@qpid.apache.org
For additional commands, e-mail: dev-help@qpid.apache.org