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

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

                Author: ASF GitHub Bot
            Created on: 08/Aug/25 20:55
            Start Date: 08/Aug/25 20:55
    Worklog Time Spent: 10m 
      Work Description: AntonRoskvist commented on PR #5764:
URL: 
https://github.com/apache/activemq-artemis/pull/5764#issuecomment-3169261905

   Hi,
   
   Thanks for looking into this. Do note that I have two PRs pertaining to 
handling of compressed messages. This one and #5574.
   
   In this case (reported by another user), some handling of a compressed 
message can throw a `NegativeArraySizeException` which is demonstrated by the 
added test "testUpstreamFederatedAddressWithCompressedMessage". This is a 
fairly "straight forward" setup where the federation of a compressed message 
triggers the issue. Running that with no other changes will demonstrate the 
issue.
   
   While working on a test for this i also stumbled on some similar issue but 
that's triggered by a questionable use-case, where sending the same compressed 
message multiple times also gives the `NegativeArraySizeException` after a few 
sends. The included test "testCompressedMessageRouting" (which is not meant to 
be in the final PR) demonstrates the behavior with some added logging and code 
comments.
   
   #5574 on the other hand is about consumer credits getting out of balance 
when receiving and rollbacking a compressed "regular" message. It will give too 
many credits back so the consumerWindowSize will get larger and larger until an 
integer overflow happens (leaving the consumer "busy" until restarted).




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

    Worklog Id:     (was: 978227)
    Time Spent: 40m  (was: 0.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: 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: issues-unsubscr...@activemq.apache.org
For additional commands, e-mail: issues-h...@activemq.apache.org
For further information, visit: https://activemq.apache.org/contact


Reply via email to