Uploaded image for project: 'Qpid Dispatch'
  1. Qpid Dispatch
  2. DISPATCH-112

Router fails with duplicate link ID errors.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.3
    • 0.4
    • Management Agent
    • None

    Description

      Regression introduced in r1658584. Attempted to give links more "friendly" management IDs but the IDs "link/<linkname>" are not unique. To be unique they should also include the remote container name, which would make them less friendly. Revert to using unique numbers for link IDs.

      Problem description from email:

      I found the commit where the bad results start happening. All subsequent commits exhibit the same problem.
      It is r1658584 | aconway | 2015-02-09 16:57:32 -0500 (Mon, 09 Feb 2015) | 7 lines

      NO-JIRA: Minor fixes to management code.

      • Get rid of defunct router_node refresh C code.
      • Use linkName for router.link identity.
      • Drop router.node addr attribute (replaced by address)
      • Rename refresh as refresh_entity to avoid confusion with neighbor_refresh etc.
      • Fix error-handling bug in agent.py
        ------------------------------------------------------------------------

      When I start a 6 node network, and then run qdstat on one of the nodes, I'm getting an error and subsequent runs of qdstat return incomplete data.
      r1658584
      qdstat -r QDR.C -c
      BadRequestStatus: org.apache.qpid.dispatch.router.link: Duplicate value 'router.link/qd.internode.1' for unique attribute 'name'
      [eallen@mrg30 config_6]$ qdstat -r QDR.C -c
      Connections
      state host container sasl-mechanisms role dir
      =============================================================================
      operational localhost:43277 QDR.A ANONYMOUS inter-router in
      operational localhost:43280 QDR.B ANONYMOUS inter-router in

      When I revert to the previous checkin, I'm not seeing the problem.
      r1658572
      qdstat -r QDR.C -c
      Connections
      state host container sasl-mechanisms role dir
      =============================================================================
      operational localhost:43318 QDR.A ANONYMOUS inter-router in
      operational localhost:43322 QDR.B ANONYMOUS inter-router in
      operational localhost:43324 QDR.Y ANONYMOUS inter-router in
      operational 0.0.0.0:20004 QDR.D ANONYMOUS inter-router out

      The conf files for the 6 node network are attached.

      -Ernie

      Attachments

        Activity

          People

            aconway Alan Conway
            aconway Alan Conway
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: