You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@activemq.apache.org by "Justin Bertram (Jira)" <ji...@apache.org> on 2025/07/10 19:47:00 UTC
[jira] [Created] (ARTEMIS-5574) Fix handling of pending large messages
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: issues-unsubscribe@activemq.apache.org
For additional commands, e-mail: issues-help@activemq.apache.org
For further information, visit: https://activemq.apache.org/contact