[ 
https://issues.apache.org/jira/browse/ARTEMIS-5530?focusedWorklogId=978692&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-978692
 ]

ASF GitHub Bot logged work on ARTEMIS-5530:
-------------------------------------------

                Author: ASF GitHub Bot
            Created on: 13/Aug/25 09:31
            Start Date: 13/Aug/25 09:31
    Worklog Time Spent: 10m 
      Work Description: AntonRoskvist commented on code in PR #5867:
URL: https://github.com/apache/activemq-artemis/pull/5867#discussion_r2272706677


##########
artemis-core-client/src/main/java/org/apache/activemq/artemis/core/client/impl/ClientProducerImpl.java:
##########
@@ -411,6 +411,8 @@ private void largeMessageSendStreamed(final boolean 
sendBlocking,
       DeflaterReader deflaterReader = null;
 
       if (session.isCompressLargeMessages()) {
+         // We need to change properties the compressed message as we send it
+         msgI = msgI.copy();

Review Comment:
   Yes, that resolved it. Very nice!





Issue Time Tracking
-------------------

    Worklog Id:     (was: 978692)
    Time Spent: 2h 40m  (was: 2.5h)

> Some handling of compressed messages can throw NegativeArraySizeException
> -------------------------------------------------------------------------
>
>                 Key: ARTEMIS-5530
>                 URL: https://issues.apache.org/jira/browse/ARTEMIS-5530
>             Project: ActiveMQ Artemis
>          Issue Type: Bug
>            Reporter: Anton Roskvist
>            Priority: Major
>              Labels: pull-request-available
>          Time Spent: 2h 40m
>  Remaining Estimate: 0h
>
> Federating compressed messages causes this for example.



--
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


Reply via email to