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

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

GitHub user ganeshmurthy opened a pull request:

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

    DISPATCH-500 - Fixed code to use qdr_field_t to pass around the name …

    …and identity of management objects

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

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

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

    https://github.com/apache/qpid-dispatch/pull/99.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 #99
    
----
commit 52b5a19aca807b4b3abe8b9e81a9b4819e2d8773
Author: Ganesh Murthy <gmur...@redhat.com>
Date:   2016-09-14T18:10:32Z

    DISPATCH-500 - Fixed code to use qdr_field_t to pass around the name and 
identity of management objects

----


> 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: dev-unsubscr...@qpid.apache.org
For additional commands, e-mail: dev-h...@qpid.apache.org

Reply via email to