Uploaded image for project: 'ActiveMQ'
  1. ActiveMQ
  2. AMQ-1979

Temporary queue on slave not removed in Pure Master/Slave setup

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 5.2.0
    • Fix Version/s: 5.2.0
    • Component/s: Broker
    • Labels:
      None

      Description

      Maybe not the most logical client code, but it happened here and I guess it will happen somewhere again:

      TemporaryQueue reply = session.createTemporaryQueue();
      MessageConsumer consumer = session.createConsumer(reply);
      Message received = consumer.receive(timeout);
      ...
      reply.delete();
      consumer.close();

      I've removed try/finally blocks to keep it simple.

      See the attached source code.

      It works fine, but set

      JmsMessageHandler.REVERSE_ORDER=true

      and the slave will not be cleaned up properly.

      It means that the number of threads is increasing and at some time it will get an OutOfMemoryError (see AMQ-1849) and the slave dies.

        Attachments

          Activity

            People

            • Assignee:
              gtully Gary Tully
              Reporter:
              hansb Hans Bausewein
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: