Skip to content

Memory Leak in RabbitTemplate when using custom correlationId #1181

Closed
@harald-raffelt

Description

@harald-raffelt

Affects Version(s): \2.2.3.RELEASE
Since https://jira.spring.io/browse/AMQP-779

When using custom correlationId there is a memory leak in the following line:

The field replyHolder of class RabbitTemplate is always cleaned up using the messageTag variable in the end of method doSendAndReceiveAsListener.
Even if the correlatrionId is used to put a pending reply in that replyHolder map.


In my humble opinion the method should ony use one of the local variables messageTag and correlationId.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions