[ 
https://issues.apache.org/jira/browse/QPID-2409?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Ted Ross reassigned QPID-2409:
------------------------------

    Assignee: Ted Ross

> "qpid-route route map" can list the same broker multiple times
> --------------------------------------------------------------
>
>                 Key: QPID-2409
>                 URL: https://issues.apache.org/jira/browse/QPID-2409
>             Project: Qpid
>          Issue Type: Bug
>         Environment: Should be any
>            Reporter: john dunning
>            Assignee: Ted Ross
>         Attachments: qpid-route.diff
>
>
> In the case of multi-homed brokers (i.e. that can be addressed by more than 
> one
> name/address), the route-map feature of qpid-route can list the same broker
> more than once.  This is because it indexes its list of brokers by the URL 
> (not
> the broker's uuid).
> Version-Release number of selected component (if applicable):
> 1.1.6 / 1.2
> How reproducible:
> 100%
> Steps to Reproduce:
> 1. Start two brokers on your local system (ports 5672 and 10000)
> 2. Create a bidirectional set of dynamic federation routes:
>     $ qpid-route dynamic add localhost localhost:10000 amq.topic
>     $ qpid-route dynamic add localhost:10000 localhost amq.topic
> 3. View the route map:
>     $ qpid-route route map
>     Finding Linked Brokers:
>         localhost:5672... Ok
>         localhost:10000... Ok
>     Dynamic Routes:
>       Exchange amq.topic:
>         localhost:10000 <=> localhost:5672
>     Static Routes:
>       none found
> 4. View the map again using the ethernet hostname (i.e. not "localhost")
>     $ hostname
>     dhcp-100-18-254.bos.redhat.com
>     $ qpid-route route map dhcp-100-18-254.bos.redhat.com
>     Finding Linked Brokers:
>         dhcp-100-18-254.bos.redhat.com:5672... Ok
>         localhost:10000... Ok
>         localhost:5672... Ok
>     Dynamic Routes:
>       Exchange amq.topic:
>         localhost:10000  => dhcp-100-18-254.bos.redhat.com:5672
>         localhost:5672 <=> localhost:10000
>     Static Routes:
>       none found
> Actual results:
> Note the fact that three brokers are listed in the second map.  This is
> incorrect because "dhcp-100-18-254.bos.redhat.com:5672" and "localhost:5672"
> are different names for the same broker.  This causes confusion in the display
> of the routes themselves.
> Expected results:
> The first map is correct.    

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:dev-subscr...@qpid.apache.org

Reply via email to