Uploaded image for project: 'Qpid'
  1. Qpid
  2. QPID-7451

[Java Broker] MessageTransferMessage should cache message size

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.32, qpid-java-6.0, qpid-java-6.0.1, qpid-java-6.0.2, qpid-java-6.0.3, qpid-java-6.0.4
    • qpid-java-6.0.5, qpid-java-6.1
    • Broker-J
    • None

    Description

      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.

      Attachments

        1. QPID-7451_for_0_32.patch
          1 kB
          Robert Godfrey

        Activity

          People

            rgodfrey Robert Godfrey
            rgodfrey Robert Godfrey
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: