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

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

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


##########
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:
   @AntonRoskvist this is basically the fix for your negative positioning on 
the buffer. The body of the message is changed during send... and subsequent 
sends are getting lost.
   
   With this property the changes are now made on a copy.





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

    Worklog Id:     (was: 978546)
    Time Spent: 2h  (was: 1h 50m)

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