Uploaded image for project: 'ActiveMQ Apollo (Retired)'
  1. ActiveMQ Apollo (Retired)
  2. APLO-309

Messages can be counted multiple times in topic-metrics

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Won't Do
    • None
    • 1.8
    • None
    • None
    • apollo-99-trunk-20130221.165856-207

    Description

      When using dsubs with wildcard subscriptions the messages are counted multiple times in the aggregated statistics.

      With the following configuration:

      <topic id="foo.1"/>
      <topic id="foo.2"/>
      <dsub id="bar" topic="foo.*"/>

      I send one message to /topic/foo.1.

      Using the REST API, I can get individual topic metrics:

      'id' => 'foo.1',
      'dsubs' => [
      'bar'
      ],
      'metrics' =>

      { 'dequeue_item_counter' => 0, 'enqueue_item_counter' => 1, 'queue_items' => 1, 'queue_size' => 134, }

      ,

      So far so good if we assume that the queue_* metrics come from the attached dsub.

      'id' => 'foo.2',
      'dsubs' => [
      'bar'
      ],
      'metrics' =>

      { 'dequeue_item_counter' => 0, 'enqueue_item_counter' => 0, 'queue_items' => 1, 'queue_size' => 134, }

      ,

      Even with no messages received, the "queue" is not empty.

      Querying the aggregated statistics (topic-metrics), I see:

      'queue_items' => 2,
      'queue_size' => 268,

      So this single message has been double counted.

      Attachments

        Activity

          People

            Unassigned Unassigned
            lionel.cons Lionel Cons
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: