Uploaded image for project: 'AMQ Broker'
  1. AMQ Broker
  2. ENTMQBR-4545

Wrong statistics for LVQ non destructive

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Critical
    • None
    • AMQ 7.8.0.GA
    • None
    • None
    • False
    • False
    • Undefined
    • Hide

      Run a Broker instance with the following address:

       

            <address name="test">
              <anycast>
                <queue name="testlvq" last-value="true" non-destructive="true">
                  <durable>true</durable>
                </queue>
              </anycast>
            </address>
      
      

       

      Watch stats from a terminal with:

      watch -n 3 ./bin/artemis queue stat --user admin --password admin --url tcp://localhost:61616 --queueName=testlvq

      NAME ADDRESS CONSUMER_COUNT MESSAGE_COUNT MESSAGES_ADDED DELIVERING_COUNT MESSAGES_ACKED SCHEDULED_COUNT ROUTING_TYPE
      testlvq test 0 0 0 0 0 0 ANYCAST

      ./bin/artemis producer --destination test::testlvq --message-count 10 --message-size 10 --user admin --password admin --url tcp://localhost:61616

      NAME ADDRESS CONSUMER_COUNT MESSAGE_COUNT MESSAGES_ADDED DELIVERING_COUNT MESSAGES_ACKED SCHEDULED_COUNT ROUTING_TYPE
      testlvq test 0 10 10 0 0 0 ANYCAST

      ./bin/artemis consumer --destination test::testlvq --user admin --password admin --url tcp://localhost:61616 --message-count 10

      NAME ADDRESS CONSUMER_COUNT MESSAGE_COUNT MESSAGES_ADDED DELIVERING_COUNT MESSAGES_ACKED SCHEDULED_COUNT ROUTING_TYPE
      testlvq test 0 10 10 0 0 0 ANYCAST

      ./bin/artemis producer --destination test::testlvq --message-count 10 --message-size 10 --user admin --password admin --url tcp://localhost:61616

      NAME ADDRESS CONSUMER_COUNT MESSAGE_COUNT MESSAGES_ADDED DELIVERING_COUNT MESSAGES_ACKED SCHEDULED_COUNT ROUTING_TYPE
      testlvq test 0 20 20 0 0 0 ANYCAST

      ./bin/artemis consumer --destination test::testlvq --user admin --password admin --url tcp://localhost:61616 --message-count 10

      NAME ADDRESS CONSUMER_COUNT MESSAGE_COUNT MESSAGES_ADDED DELIVERING_COUNT MESSAGES_ACKED SCHEDULED_COUNT ROUTING_TYPE
      testlvq test 0 30 20 0 0 0 ANYCAST

      ./bin/artemis consumer --destination test::testlvq --user admin --password admin --url tcp://localhost:61616 --message-count 10

      NAME ADDRESS CONSUMER_COUNT MESSAGE_COUNT MESSAGES_ADDED DELIVERING_COUNT MESSAGES_ACKED SCHEDULED_COUNT ROUTING_TYPE
      testlvq test 0 50 20 0 0 0 ANYCAST

      restart the broker

      NAME ADDRESS CONSUMER_COUNT MESSAGE_COUNT MESSAGES_ADDED DELIVERING_COUNT MESSAGES_ACKED SCHEDULED_COUNT ROUTING_TYPE
      testlvq test 0 20 20 0 0 0 ANYCAST

       

       

      Show
      Run a Broker instance with the following address:   <address name= "test" > <anycast> <queue name= "testlvq" last-value= " true " non-destructive= " true " > <durable> true </durable> </queue> </anycast> </address>   Watch stats from a terminal with: watch -n 3 ./bin/artemis queue stat --user admin --password admin --url tcp://localhost:61616 --queueName=testlvq NAME ADDRESS CONSUMER_COUNT MESSAGE_COUNT MESSAGES_ADDED DELIVERING_COUNT MESSAGES_ACKED SCHEDULED_COUNT ROUTING_TYPE testlvq test 0 0 0 0 0 0 ANYCAST ./bin/artemis producer --destination test::testlvq --message-count 10 --message-size 10 --user admin --password admin --url tcp://localhost:61616 NAME ADDRESS CONSUMER_COUNT MESSAGE_COUNT MESSAGES_ADDED DELIVERING_COUNT MESSAGES_ACKED SCHEDULED_COUNT ROUTING_TYPE testlvq test 0 10 10 0 0 0 ANYCAST ./bin/artemis consumer --destination test::testlvq --user admin --password admin --url tcp://localhost:61616 --message-count 10 NAME ADDRESS CONSUMER_COUNT MESSAGE_COUNT MESSAGES_ADDED DELIVERING_COUNT MESSAGES_ACKED SCHEDULED_COUNT ROUTING_TYPE testlvq test 0 10 10 0 0 0 ANYCAST ./bin/artemis producer --destination test::testlvq --message-count 10 --message-size 10 --user admin --password admin --url tcp://localhost:61616 NAME ADDRESS CONSUMER_COUNT MESSAGE_COUNT MESSAGES_ADDED DELIVERING_COUNT MESSAGES_ACKED SCHEDULED_COUNT ROUTING_TYPE testlvq test 0 20 20 0 0 0 ANYCAST ./bin/artemis consumer --destination test::testlvq --user admin --password admin --url tcp://localhost:61616 --message-count 10 NAME ADDRESS CONSUMER_COUNT MESSAGE_COUNT MESSAGES_ADDED DELIVERING_COUNT MESSAGES_ACKED SCHEDULED_COUNT ROUTING_TYPE testlvq test 0 30 20 0 0 0 ANYCAST ./bin/artemis consumer --destination test::testlvq --user admin --password admin --url tcp://localhost:61616 --message-count 10 NAME ADDRESS CONSUMER_COUNT MESSAGE_COUNT MESSAGES_ADDED DELIVERING_COUNT MESSAGES_ACKED SCHEDULED_COUNT ROUTING_TYPE testlvq test 0 50 20 0 0 0 ANYCAST restart the broker NAME ADDRESS CONSUMER_COUNT MESSAGE_COUNT MESSAGES_ADDED DELIVERING_COUNT MESSAGES_ACKED SCHEDULED_COUNT ROUTING_TYPE testlvq test 0 20 20 0 0 0 ANYCAST    

    Description

      Statistics showed in the web console or with the admin command query doesn't work as expected.

      1. MESSAGES_ADDED : grow also after message consumed
      2. DELIVERING_COUNT: always zero
      3. MESSAGES_ACKED : always zero

      Attachments

        Issue Links

          Activity

            People

              rhn-support-jbertram Justin Bertram
              rhn-support-agagliar Antonio Gagliardi
              Roman Vais Roman Vais
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: