Uploaded image for project: 'JBoss A-MQ'
  1. JBoss A-MQ
  2. ENTMQ-1776

QueueBrowser does not reflect message that are expired.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • JBoss A-MQ 6.3
    • JBoss A-MQ 6.2.1
    • jms-client
    • None
    • Hide

      unzip the amqtest.zip file
      import to jbds
      run junit

      Show
      unzip the amqtest.zip file import to jbds run junit

      First in the pom.xml, if you use <version>5.11.0.redhat-621084</version> the problem doesn't show. Once you change it to <version>5.11.0.redhat-621090</version> or <version>5.11.0.redhat-621107</version> the junit test will fail.

      The main code goes like this:

      Ln41   count = getMessageCount(producerQueue, session);
               System.out.println("first count "+ count);
               assertEquals(1, count);
      
      Ln44   Thread.sleep(WAIT_TIME +  1000);
      
                count = getMessageCount(producerQueue, session);
                System.out.println("second count "+ count);
      Ln48    assertEquals(0, count);
      

      Using 5.11.0.redhat-621090 or later build, ln48 assertion fails.

      If you increased the sleep time to 30 secs (ln 44: Thread.sleep(WAIT_TIME + 30000), looks like it is working properly.
      Also, looking at the jmx mbean, and it looks like it is reflecting immediately.

            Unassigned Unassigned
            rhn-support-whui Roger Hui
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: