Fabio Nascimento Brandão created ARTEMIS-3636:
-------------------------------------------------

             Summary: LinkedListImpl$Iterator leak on mesage consume error
                 Key: ARTEMIS-3636
                 URL: https://issues.apache.org/jira/browse/ARTEMIS-3636
             Project: ActiveMQ Artemis
          Issue Type: Bug
          Components: ActiveMQ-Artemis-Native
    Affects Versions: 2.19.0
            Reporter: Fabio Nascimento Brandão
            Assignee: Clebert Suconic
         Attachments: ClientConsumerImplTest.java

There is a leak of 
org.apache.activemq.artemis.utils.collections.LinkedListIterator when a message 
is marked for rollback on consume.

[https://github.com/apache/activemq-artemis/blob/main/artemis-core-client/src/main/java/org/apache/activemq/artemis/core/client/impl/ClientConsumerImpl.java#L713]

The iterator used at ClientConsumerImpl:713 is never closed causing the leak.

 

I wrote a "unit test" that simulates this condition. Start the test with 
Xmx256m and after some seconds the program terminates with "OutOfMemoryError".



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

Reply via email to