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

Message Redistribution leaking Iterator

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Undefined Undefined
    • None
    • AMQ 7.11.2.GA, AMQ 7.11.3.GA
    • None
    • False
    • None
    • False
    • ARTEMIS-4442

      When you remove a Queue redistributor, the Iterator is not being closed.

       

      This leak on Message Iterators, would happen in any combination of the broker, as long as redistribution-delay on the address-setting is >= 0.

       

      Even when there are no other nodes connected to a node, when all consumers are closed, the queue will add a redistributor that would look for other remote queues. (Even when there are no other nodes connected).

      The following 3 lines of code were added into QueueImpl as part of AMQ 7.11.3, to fix the leak.

      https://github.com/apache/activemq-artemis/blob/57ed2c30b32f83b4d8e5fcba0c3c4c79c5f8f407/artemis-server/src/main/java/org/apache/activemq/artemis/core/server/impl/QueueImpl.java#L1651-L1654

       

       

      To avoid this leak users will have to either set redistribution-delay as -1 (which is the default value) or apply the patch.

              csuconic@redhat.com Clebert Suconic
              rhn-support-adongre Avinash Dongre
              Samuel Gajdos Samuel Gajdos
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

                Created:
                Updated:
                Resolved: