You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2018/08/01 20:53:00 UTC

[jira] [Commented] (DISPATCH-1093) adding connectors dynamically causes extra connections for existing connectors

    [ https://issues.apache.org/jira/browse/DISPATCH-1093?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16565967#comment-16565967 ] 

ASF GitHub Bot commented on DISPATCH-1093:
------------------------------------------

GitHub user ganeshmurthy opened a pull request:

    https://github.com/apache/qpid-dispatch/pull/350

    DISPATCH-1093 - Prevent additional connections from being created fro…

    …m connectors when calling qd_connection_manager_start

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/ganeshmurthy/qpid-dispatch DISPATCH-1093

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/qpid-dispatch/pull/350.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #350
    
----
commit 1f806aba46bb0ddcd49b098dbaae134143955e21
Author: Ganesh Murthy <gm...@...>
Date:   2018-08-01T20:33:11Z

    DISPATCH-1093 - Prevent additional connections from being created from connectors when calling qd_connection_manager_start

----


> adding connectors dynamically causes extra connections for existing connectors
> ------------------------------------------------------------------------------
>
>                 Key: DISPATCH-1093
>                 URL: https://issues.apache.org/jira/browse/DISPATCH-1093
>             Project: Qpid Dispatch
>          Issue Type: Bug
>    Affects Versions: 1.2.0
>            Reporter: Gordon Sim
>            Assignee: Ganesh Murthy
>            Priority: Major
>             Fix For: 1.3.0
>
>
> 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:
> {noformat}
> $ 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  
> {noformat}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@qpid.apache.org
For additional commands, e-mail: dev-help@qpid.apache.org