[
https://issues.apache.org/jira/browse/DISPATCH-500?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Ganesh Murthy resolved DISPATCH-500.
------------------------------------
Resolution: Fixed
> name in conf file is not sent in response to management query
> -------------------------------------------------------------
>
> Key: DISPATCH-500
> URL: https://issues.apache.org/jira/browse/DISPATCH-500
> Project: Qpid Dispatch
> Issue Type: Bug
> Reporter: Gordon Sim
> Assignee: Ganesh Murthy
> Fix For: 0.7.0
>
>
> If you have an address or linkRoute defined in a config file, and it has a
> name defined, that name is not passed back in any management query. You get a
> null instead.
> E.g. with following config:
> {noformat}
> router {
> mode: standalone
> id: Router.A
> workerThreads: 4
> }
> listener {
> addr: 0.0.0.0
> port: amqp
> authenticatePeer: no
> }
> address {
> name: a
> prefix: a
> distribution: multicast
> }
> linkRoute {
> name: b
> prefix: b
> dir: in
> }
> {noformat}
> you get:
> {noformat}
> $ qdmanage QUERY --type address
> [
> {
> "egressPhase": 0,
> "ingressPhase": 0,
> "prefix": "a",
> "waypoint": false,
> "distribution": "multicast",
> "type": "org.apache.qpid.dispatch.router.config.address",
> "identity": "1"
> }
> ]
> $ qdmanage QUERY --type linkRoute
> [
> {
> "operStatus": "inactive",
> "prefix": "b",
> "identity": "2",
> "distribution": "linkBalanced",
> "type": "org.apache.qpid.dispatch.router.config.linkRoute",
> "dir": "in"
> }
> ]
> {noformat}
> You can look also at the AMQP message as sent over the wire and see that the
> name attribute value is passed back as null:
> {noformat}
> $ PN_TRACE_FRM=1 qdmanage QUERY --type address
> [... removed some output here ..]
> [0x56360987da00]:0 <- @transfer(20) [handle=1, delivery-id=0,
> delivery-tag=b"\x00\x00\x00\x00\x00\x00\x00\x00", message-format=0,
> settled=true, more=false] (328)
> "\x00Ss\xd0\x00\x00\x007\x00\x00\x00\x06@@\xa1+amqp:/_topo/0/Router.A/temp.ZC_8E33yIpwy43I@@S\x01\x00St\xd1\x00\x00\x00)\x00\x00\x00\x04\xa1\x11statusDescription\xa1\x02OK\xa1\x0astatusCodeR\xc8\x00Sw\xd1\x00\x00\x00\xd0\x00\x00\x00\x04\xa1\x0eattributeNames\xd0\x00\x00\x00U\x00\x00\x00\x08\xa1\x04name\xa1\x08identity\xa1\x04type\xa1\x06prefix\xa1\x0cdistribution\xa1\x08waypoint\xa1\x0cingressPhase\xa1\x0begressPhase\xa1\x07results\xd0\x00\x00\x00T\x00\x00\x00\x01\xd0\x00\x00\x00K\x00\x00\x00\x08@\xa1\x011\xa1.org.apache.qpid.dispatch.router.config.address\xa1\x01a\xa1\x09multicastBT\x00T\x00"
> [
> {
> "egressPhase": 0,
> "ingressPhase": 0,
> "prefix": "a",
> "waypoint": false,
> "distribution": "multicast",
> "type": "org.apache.qpid.dispatch.router.config.address",
> "identity": "1"
> }
> ]
> {noformat}
> The first element in the attributeNames list is 'name', the first element in
> the record in the results list is '@' i.e. null (0x40).
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]