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

Qdstat throws exception when router compiled with `DQD_MEMORY_STATS=OFF`

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.15.0
    • 1.18.0
    • Tools
    • None

    Description

      From the README

          -DQD_MEMORY_STATS=
          ------------------
      
          Dispatch will track memory pool usage statistics if this is enabled.
      

      So the statistics may not be always available, depending on the way Dispatch is compiled.

      Allocator metrics get reported as 0. I see that qdmanage works just fine, but qdstat is throwing an error in such case:

      $ qdstat -m
      2021-02-04 15:08:19.288818 UTC
      Standalone_v++jCPCjYiQcGo3
      
      TypeError: unsupported operand type(s) for *: 'int32' and 'NoneType'
      

      Found during PR review by fgiorget.

      Attachments

        Activity

          People

            gmurthy Ganesh Murthy
            jdanek Jiri Daněk
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: