Uploaded image for project: 'Qpid'
  1. Qpid
  2. QPID-2409

"qpid-route route map" can list the same broker multiple times

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • None
    • None
    • None
    • Should be any

    Description

      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.

      Attachments

        1. qpid-route.diff
          0.3 kB
          John Dunning

        Activity

          People

            tross Ted Ross
            jrd John Dunning
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: