You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by "Rob Godfrey (JIRA)" <ji...@apache.org> on 2016/10/06 20:09:20 UTC

[jira] [Created] (QPID-7451) [Java Broker] MessageTransferMessage should cache message size

Rob Godfrey created QPID-7451:
---------------------------------

             Summary: [Java Broker] MessageTransferMessage should cache message size
                 Key: QPID-7451
                 URL: https://issues.apache.org/jira/browse/QPID-7451
             Project: Qpid
          Issue Type: Bug
          Components: Java Broker
    Affects Versions: qpid-java-6.0.4, qpid-java-6.0.3, qpid-java-6.0.2, qpid-java-6.0.1, qpid-java-6.0, 0.32
            Reporter: Rob Godfrey
            Assignee: Rob Godfrey


AMQMessage (the 0-9-1 path) caches message size, however MessageTransferMessage (the 0-10 path) does not.  This means that the delivery path from AbstractQueue may require retrieval of the message meta data from the store to get the message size.  Since not all requests to get the message size are protected by first getting a message reference, there is a chance of a race whereby the message is removed from the store between checking whether it is available and obtaining the message size.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@qpid.apache.org
For additional commands, e-mail: dev-help@qpid.apache.org