activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrejs Jermakovics (JIRA)" <>
Subject [jira] [Created] (AMQ-3957) Temporary queues are not being garbage collected. (unit test included)
Date Thu, 02 Aug 2012 14:47:03 GMT
Andrejs Jermakovics created AMQ-3957:

             Summary: Temporary queues are not being garbage collected. (unit test included)
                 Key: AMQ-3957
             Project: ActiveMQ
          Issue Type: Bug
    Affects Versions: 5.6.0
            Reporter: Andrejs Jermakovics

Temporary queues are not being garbage collected even if garbage collection is specified in
destination policy.

*To reproduce:*
Add the following unit test to {{DetinationGCTest}}:

    public void testTempQueueGc() throws Exception {
        assertEquals(1, broker.getAdminView().getTemporaryQueues().length);
        assertTrue("After GC runs temporary queue should be deleted.", Wait.waitFor(new Condition()
            public boolean isSatisified() throws Exception {
                return broker.getAdminView().getTemporaryQueues().length == 0;

And in {{createBroker()}} method change the setDestinations line to:
broker.setDestinations(new ActiveMQDestination[] {queue, new ActiveMQTempQueue("TEMP-QUEUE")});

set {{broker.setAllowTempAutoCreationOnSend(true);}} however I'd expect the temp queues to
be GCd without this setting.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:!default.jspa
For more information on JIRA, see:


View raw message