[ https://issues.apache.org/jira/browse/DISPATCH-1093?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16568686#comment-16568686 ]
ASF subversion and git services commented on DISPATCH-1093: ----------------------------------------------------------- Commit 69c093f939e5fc106701665588cf2459e6f961d1 in qpid-dispatch's branch refs/heads/master from [~ganeshmurthy] [ https://git-wip-us.apache.org/repos/asf?p=qpid-dispatch.git;h=69c093f ] DISPATCH-1093 - Prevent additional connections from being created from connectors when calling qd_connection_manager_start. This closes #350 > 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-unsubscr...@qpid.apache.org For additional commands, e-mail: dev-h...@qpid.apache.org