You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@activemq.apache.org by "Justin Bertram (Jira)" <ji...@apache.org> on 2025/07/02 19:04:00 UTC

[jira] [Updated] (ARTEMIS-5554) Minor resources leaks when using CLI

     [ https://issues.apache.org/jira/browse/ARTEMIS-5554?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Justin Bertram updated ARTEMIS-5554:
------------------------------------
    Summary: Minor resources leaks when using CLI  (was: Minor resources leaks)

> Minor resources leaks when using CLI
> ------------------------------------
>
>                 Key: ARTEMIS-5554
>                 URL: https://issues.apache.org/jira/browse/ARTEMIS-5554
>             Project: ActiveMQ Artemis
>          Issue Type: Bug
>            Reporter: Domenico Francesco Bruscino
>            Assignee: Domenico Francesco Bruscino
>            Priority: Major
>             Fix For: 2.42.0
>
>
> Some CLI commands support AMQP and CORE protocols. The connection factory created for CORE protocol is {{ActiveMQConnectionFactory}} and it implements {{AutoCloseable}} but some CLI commands don't close it.
> The method {{getLargeMessageBuffer}} of the {{CoreMessage}} class should use a try-with-resources block for the {{LargeBodyReader}} to avoid leaks in case of exceptions.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@activemq.apache.org
For additional commands, e-mail: issues-help@activemq.apache.org
For further information, visit: https://activemq.apache.org/contact