[
https://issues.apache.org/jira/browse/DISPATCH-246?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15219035#comment-15219035
]
Ernest Allen commented on DISPATCH-246:
---------------------------------------
If I attempt to create a connector without a name, but using a port that
*isn't* already used by a listener:
>qdmanage CREATE --type connector port=21112
It succeeds and returns
{
"stripAnnotations": "both",
"addr": "127.0.0.1",
"allowRedirect": true,
"idleTimeoutSeconds": 16,
"maxFrameSize": 65536,
"role": "normal",
"type": "org.apache.qpid.dispatch.connector",
"port": "21112",
"identity": "connector/127.0.0.1:21112",
"name": "connector/127.0.0.1:21112"
}
It appears to create the name using entity/host:port if it isn't supplied.
This test was run without the fix.
> Router crash when creating connector with same port as existing listener
> ------------------------------------------------------------------------
>
> Key: DISPATCH-246
> URL: https://issues.apache.org/jira/browse/DISPATCH-246
> Project: Qpid Dispatch
> Issue Type: Bug
> Components: Management Agent
> Affects Versions: 0.6
> Reporter: Ernest Allen
> Assignee: Ganesh Murthy
>
> - Start a router with a listener on a port. The listener's role doesn't seem
> to matter.
> - After the router is running, attempt to call the CREATE method using the
> same port on which the router is listening.
> I'm getting an immediate crash 100% of the time.
> Here is the json passed to the method call:
> {
> "body": {
> "type": "connector",
> "port": "20102",
> "role": "normal"
> },
> "properties": {
> "to": "_topo/0/QDR.A/$management",
> "reply_to": "amqp:/_topo/0/QDR.A/temp.ezDGhBZEEg+4LMn",
> "correlation_id": "16"
> },
> "application_properties": {
> "operation": "CREATE",
> "type": "connector"
> }
> }
> This was done through the console. I'm not sure the syntax to do the same
> thing through qdmanage.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]