Justin Bertram created ARTEMIS-5574:
---------------------------------------

             Summary: Fix handling of pending large messages
                 Key: ARTEMIS-5574
                 URL: https://issues.apache.org/jira/browse/ARTEMIS-5574
             Project: ActiveMQ Artemis
          Issue Type: Bug
            Reporter: Justin Bertram
            Assignee: Justin Bertram


When the first bytes of a large message are sent to the broker we add a 
"pending" large message record to the journal so that we can keep track of the 
message and potentially clean up any stranded large message files if the broker 
crashes before the client finishes sending the message. However, there are 2 
problems:

* The process of deleting the file actually creates it if it doesn't exist. 
This creates unnecessary disk I/O.
* The "pending" large message record is never removed from the journal which 
means that *every* time the broker is restarted thereafter it will log 
something like the following:
    {noformat}
AMQ221005: Deleting pending large message as it was not completed: 
Pair[a=<journal-record-id>, b=<large-message-id>]{noformat}



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