Uploaded image for project: 'Qpid Dispatch'
  1. Qpid Dispatch
  2. DISPATCH-500

name in conf file is not sent in response to management query

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 0.7.0
    • None
    • None

    Description

      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:

      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
      }
      

      you get:

      $ 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"
        }
      ]
      

      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:

      $ 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"
        }
      ]
      
      

      The first element in the attributeNames list is 'name', the first element in the record in the results list is '@' i.e. null (0x40).

      Attachments

        Issue Links

          Activity

            People

              gmurthy Ganesh Murthy
              gsim Gordon Sim
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: