Details
-
Bug
-
Resolution: Done
-
Minor
-
7.1.0.DR7
-
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).
[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
[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.
[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
- is cloned by
-
WFLY-7405 Message counters doesn't work correctly without server reload after enabling statistics
- Closed