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

adding connectors dynamically causes extra connections for existing connectors

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.2.0
    • 1.3.0
    • None
    • None

    Description

      Every time a new connector is created dynamically, the router will create a new connection for any existing connector. E.g. with some amqp server listening on ports 5673 and 5674:

      $ echo '{"host":"localhost","port":5673}' | qdmanage CREATE --type=connector --name=foo --stdin
      {
        "verifyHostname": true, 
        "stripAnnotations": "both", 
        "name": "foo", 
        "idleTimeoutSeconds": 16, 
        "allowRedirect": true, 
        "messageLoggingComponents": "none", 
        "maxFrameSize": 16384, 
        "host": "localhost", 
        "cost": 1, 
        "role": "normal", 
        "failoverUrls": "amqp://localhost:5673", 
        "maxSessions": 32768, 
        "type": "org.apache.qpid.dispatch.connector", 
        "port": "5673", 
        "identity": "connector/localhost:5673:foo"
      }
      ]$ qdstat -c
      Connections
        id  host             container                             role    dir  security     authentication  tenant
        =============================================================================================================
        2   localhost:5673   a6022696-2483-49f5-8ea6-a6f50db0e7ae  normal  out  no-security  anonymous-user  
        3   127.0.0.1:56024  d964573c-297f-499c-a1f5-fed7d8e74f9c  normal  in   no-security  no-auth         
      $ echo '{"host":"localhost","port":5674}' | qdmanage CREATE --type=connector --name=bar --stdin
      {
        "verifyHostname": true, 
        "stripAnnotations": "both", 
        "name": "bar", 
        "idleTimeoutSeconds": 16, 
        "allowRedirect": true, 
        "messageLoggingComponents": "none", 
        "maxFrameSize": 16384, 
        "host": "localhost", 
        "cost": 1, 
        "role": "normal", 
        "failoverUrls": "amqp://localhost:5674", 
        "maxSessions": 32768, 
        "type": "org.apache.qpid.dispatch.connector", 
        "port": "5674", 
        "identity": "connector/localhost:5674:bar"
      }
      $ qdstat -c
      Connections
        id  host             container                             role    dir  security     authentication  tenant
        =============================================================================================================
        2   localhost:5673   a6022696-2483-49f5-8ea6-a6f50db0e7ae  normal  out  no-security  anonymous-user  
        6   localhost:5673   a6022696-2483-49f5-8ea6-a6f50db0e7ae  normal  out  no-security  anonymous-user  
        5   localhost:5674   48fefab4-7df0-5244-b491-ad85278b22dc  normal  out  no-security  anonymous-user  
        7   127.0.0.1:56074  c4ddfd00-2ef5-473f-9687-28ee4bae4def  normal  in   no-security  no-auth         
      $ echo '{"host":"localhost","port":5675}' | qdmanage CREATE --type=connector --name=baz --stdin
      {
        "verifyHostname": true, 
        "stripAnnotations": "both", 
        "name": "baz", 
        "idleTimeoutSeconds": 16, 
        "allowRedirect": true, 
        "messageLoggingComponents": "none", 
        "maxFrameSize": 16384, 
        "host": "localhost", 
        "cost": 1, 
        "role": "normal", 
        "failoverUrls": "amqp://localhost:5675", 
        "maxSessions": 32768, 
        "type": "org.apache.qpid.dispatch.connector", 
        "port": "5675", 
        "identity": "connector/localhost:5675:baz"
      }
      $ qdstat -c
      Connections
        id  host             container                             role    dir  security     authentication  tenant
        =============================================================================================================
        2   localhost:5673   a6022696-2483-49f5-8ea6-a6f50db0e7ae  normal  out  no-security  anonymous-user  
        6   localhost:5673   a6022696-2483-49f5-8ea6-a6f50db0e7ae  normal  out  no-security  anonymous-user  
        5   localhost:5674   48fefab4-7df0-5244-b491-ad85278b22dc  normal  out  no-security  anonymous-user  
        11  localhost:5673   a6022696-2483-49f5-8ea6-a6f50db0e7ae  normal  out  no-security  anonymous-user  
        10  localhost:5674   48fefab4-7df0-5244-b491-ad85278b22dc  normal  out  no-security  anonymous-user  
      
      

      Attachments

        Issue Links

          Activity

            People

              gmurthy Ganesh Murthy
              gsim Gordon Sim
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: