-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
INT-4509: Fix memory leak for static beans stores
JIRA: https://jira.spring.io/browse/INT-4509 To avoid a re-usage of the `AbstractReplyProducingMessageHandler`, the `IntegrationFlowDefinition` and `AbstractStandardMessageHandlerFactoryBean` have a `static Set<>` to store already used producers and check it for newly provided. These stores are not cleaned when beans are destroyed leading to memory leaks * Implements a `DisposableBean` for the `AbstractStandardMessageHandlerFactoryBean` to remove its `replyHandler` from the `referencedReplyProducers` on `destroy()` * Introduce a `IntegrationFlowDefinition.ReplyProducerCleaner` - an `DestructionAwareBeanPostProcessor` to clean up removing `MessageProducer` from the `IntegrationFlowDefinition.REFERENCED_REPLY_PRODUCERS` **Cherry-pick to 5.0.x**
- Loading branch information
1 parent
d4cf440
commit 663984a
Showing
5 changed files
with
132 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.