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
Attachments
Issue Links
- relates to
-
QPID-3979 Last value queue memory leak
- Resolved