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

Use msg.getSize() rather than getContentHeaderBody in NotificationCheck to avoid an access to persistence layer

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.5
    • None
    • None

    Description

      We have the following sequence in the broker (v.0.5):

          +--NotificationCheck:isMessageSpecific (org.apache.qpid.server.queue)
          +--NotificationCheck$2:notifyIfNecessary (org.apache.qpid.server.queue)
            +--SimpleAMQQueue:getMaximumMessageSize (org.apache.qpid.server.queue)
            +--AMQMessage:getContentHeaderBody (org.apache.qpid.server.queue)
              +--AMQMessage:getStoreContext (org.apache.qpid.server.queue)
              +--WeakReferenceMessageHandle:getContentHeaderBody (org.apache.qpid.server.queue)
                +--WeakReferenceMessageHandle:loadMessageMetaData (org.apache.qpid.server.queue)
                  +--BDBMessageStore:getMessageMetaData (org.apache.qpid.server.store.berkeleydb)

      getContentHeaderBody could be replaced with msg.getSize() which would save going to BDB.

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            robbie Robbie Gemmell
            sorins Sorin Suciu
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment