[
https://issues.apache.org/jira/browse/ARTEMIS-5554?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17986407#comment-17986407
]
ASF subversion and git services commented on ARTEMIS-5554:
----------------------------------------------------------
Commit f7b0c5fb9f40fc915c5da6510a3c9379943045dc in activemq-artemis's branch
refs/heads/main from Domenico Francesco Bruscino
[ https://gitbox.apache.org/repos/asf?p=activemq-artemis.git;h=f7b0c5fb9f ]
ARTEMIS-5554 Fix minor resources leaks
Close ActiveMQConnectionFactory instances created by CLI commands.
Use a try-with-resources block for the LargeBodyReader in the method
getLargeMessageBuffer of the CoreMessage class to avoid leaks in case
of exceptions.
> Minor resources leaks
> ---------------------
>
> 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
>
> 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: [email protected]
For additional commands, e-mail: [email protected]
For further information, visit: https://activemq.apache.org/contact