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

Last value queue - entries replaced by conflation are never deleted, causing memory leak

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.16
    • 0.17
    • Broker-J
    • None

    Description

      This issue was uncovered while investigating QPID-3979.

      The conflation behaviour of last value queues appears correct from the perspective of consumers. However, the message count suggests that conflation is not occurring.

      I checked what happens when ConflationQueueList.add(..) is replacing an existing ConflationQueueEntry. ConflationQueueList calls acquire() on the entry and then tries to discard it. The discard does nothing because it tries again to acquire the message. Therefore, the message stays in the list, causing a memory leak.

      Because the message has been acquired, it is not delivered to consumers - that is why everything appears to work correctly from their point of view.

      Attachments

        Issue Links

          Activity

            People

              kwall Keith Wall
              philharveyonline Phil Harvey
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: