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

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

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.16
    • Fix Version/s: 0.17
    • Component/s: Broker-J
    • Labels:
      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

              • Assignee:
                k-wall Keith Wall
                Reporter:
                philharveyonline Philip Harvey
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: