Uploaded image for project: 'Qpid'
  1. Qpid
  2. QPID-5107

Trace queue&session deletion statistics show zero values for some counters everytime

    XMLWordPrintableJSON

    Details

      Description

      Description of problem:
      qpid trace/logs statistics about object deletion. However some of these data are wrong. In particular msgDepth for a queue is everytime zero (and msgTotalDequeues equals to msgTotalEnqueues despite no consumer was subscribed to the queue), or unackedMessages for a session is zero everytime as well.

      Version-Release number of selected component (if applicable):
      qpid 0.22

      How reproducible:
      100%

      Steps to Reproduce:
      1) msgDepth:0 for queue:
      echo "auth=no" > /etc/qpid/qpidd.conf
      echo "trace=yes" >> /etc/qpid/qpidd.conf
      echo "log-to-file=/tmp/qpidd.log" >> /etc/qpid/qpidd.conf
      rm -rf /var/lib/qpidd/* /tmp/qpidd.log
      service qpidd restart
      qpid-send -m 123 -a "testQueue;

      {create:always, delete:always}

      "
      sleep 10 # just to let periodic processing to run & print out the stats
      grep "Mgmt delete queue" /tmp/qpidd.log

      Actual results:
      2013-08-29 14:05:38 [Model] trace Mgmt delete queue. id:testQueue Statistics:

      {acquires:123, bindingCount:0, bindingCountHigh:0, bindingCountLow:0, byteDepth:0, byteFtdDepth:0, byteFtdDequeues:0, byteFtdEnqueues:0, bytePersistDequeues:0, bytePersistEnqueues:0, byteTotalDequeues:0, byteTotalEnqueues:0, byteTxnDequeues:0, byteTxnEnqueues:0, consumerCount:0, consumerCountHigh:0, consumerCountLow:0, discardsLvq:0, discardsOverflow:0, discardsPurge:0, discardsRing:0, discardsSubscriber:0, discardsTtl:0, flowStopped:False, flowStoppedCount:0, messageLatencyAvg:0, messageLatencyCount:0, messageLatencyMax:0, messageLatencyMin:0, msgDepth:0, msgFtdDepth:0, msgFtdDequeues:0, msgFtdEnqueues:0, msgPersistDequeues:0, msgPersistEnqueues:0, msgTotalDequeues:123, msgTotalEnqueues:123, msgTxnDequeues:0, msgTxnEnqueues:0, releases:0, reroutes:0, unackedMessages:0, unackedMessagesHigh:0, unackedMessagesLow:0}

      Expected results:
      acquires:0
      msgTotalDequeues:0
      (several other counters are supposed to be wrong as well like byteFtdDequeues)

      2) Reproducer for unackedMessages:0 for session:
      qpid-send -m 11 -a "myQueue;

      {create:always}

      "
      qpid-receive -m 100 -a "myQueue;

      {create:always}

      " -f

      (in another terminal)
      qpid-tool
      list connection
      call <ID_of_qpid-receive-connection> close

      and now check result:

      grep Tx /tmp/qpidd.log | grep session

      should return "unackedMessages:11" but returns zero.

        Attachments

        1. QPID-5107_debugStats.patch
          12 kB
          Pavel Moravec
        2. QPID-5107.patch
          2 kB
          Pavel Moravec

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              pmoravec Pavel Moravec
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 2h
                2h
                Remaining:
                Remaining Estimate - 2h
                2h
                Logged:
                Time Spent - Not Specified
                Not Specified