Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-7405

Message counters doesn't work correctly without server reload after enabling statistics

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Minor
    • 11.0.0.Alpha1
    • 10.1.0.Final
    • JMS
    • None

    Description

      Server is started with queue deployed. Attribute statistics-enabled is then set to true in messaging server. This operation doesn't require reload. Start sending messages and look at outputs of operation list-message-counter-as-json or list-message-counter-as-html at queue you are using to send messages. (message-counter-sample-period is set to 10s by default, so give it some time).

      list-message-counter-as-json output
      [standalone@localhost:9990 jms-queue=q] :list-message-counter-as-json
      {
          "outcome" => "success",
          "result" => "{\"destinationName\":\"q\",\"destinationSubscription\":null,\"destinationDurable\":true,\"count\":0,\"countDelta\":0,\"messageCount\":47064,\"messageCountDelta\":809,\"lastAddTimestamp\":\"1/1/70 1:00:00 AM\",\"updateTimestamp\":\"1/1/70 1:00:00 AM\"}"
      }
      

      Only attributes messageCount, messageCountDelta contain updated values . Other attributes are either null, 0 or default timestamp.

      Output of list-message-counter-history-as-json is also not correctly updated

      list-message-counter-history-as-json output
      [standalone@localhost:9990 jms-queue=q] :list-message-counter-history-as-json
      {
          "outcome" => "success",
          "result" => "{\"dayCounters\":[{\"date\":\"10/27/16\",\"counters\":[-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,0,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1]}]}"
      }
      

      After server reload, output of operations updates and starts working as expected.

      Output after reload
      [standalone@localhost:9990 jms-queue=q] :list-message-counter-history-as-json
      {
          "outcome" => "success",
          "result" => "{\"dayCounters\":[{\"date\":\"10/27/16\",\"counters\":[-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,60015,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1]}]}"
      }
      [standalone@localhost:9990 jms-queue=q] :list-message-counter-as-json
      {
          "outcome" => "success",
          "result" => "{\"destinationName\":\"q\",\"destinationSubscription\":null,\"destinationDurable\":true,\"count\":60015,\"countDelta\":60015,\"messageCount\":60015,\"messageCountDelta\":60015,\"lastAddTimestamp\":\"10/27/16 11:34:39 AM\",\"updateTimestamp\":\"10/27/16 11:35:29 AM\"}"
      }
      

      Values are also correctly updated when new messages are sent now.

      As administrator, I would like to be able to turn on/off statistics also without server reload. Although it is possible with messaging subsystem, it is not working correctly until reload.

      Attachments

        Issue Links

          Activity

            People

              jmesnil1@redhat.com Jeff Mesnil
              jmesnil1@redhat.com Jeff Mesnil
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: