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

route connection not indexed by 'connection' field of connector

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      The connection established by a route-container connector will not be indexed by the 'connection' field of that connector if there is already an existing route-connection with the same container id but established by a different connector.

      E.g. start router on 5672 and a broker (or a separate router emulating a broker) on 5673, then:

      for n in foo bar; do
          qdmanage CREATE --type connector --name $n role=route-container host=localhost port=5673; 
          qdmanage CREATE --type linkRoute --name $n pattern=$n direction=in connection=$n;
      done;
      qdstat --linkroute
      

      Only one of these link routes is active though both connections are established.

      The issues is that when the first connection is established, it indexes the qdr_conn_identifier_t by container-id and the connection label from the connector. When the second connection is established, it looks up first by container id, so adds itself to the qdr_conn_identifier_t created by the first connection. There is then no entry in the index for the connection label of the second connector, so the second link route can never be activated.

        Attachments

          Activity

            People

            • Assignee:
              gsim Gordon Sim
              Reporter:
              gsim Gordon Sim
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: