-
Bug
-
Resolution: Done
-
Major
-
JBoss A-MQ 6.2.1
-
None
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.
- relates to
-
ENTMQ-1824 [message expiry, consumer side] pull request hangs if message expires on client side in org.apache.activemq.ActiveMQMessageConsumer
- Closed