[
https://issues.apache.org/jira/browse/FLINK-25827?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
ASF GitHub Bot updated FLINK-25827:
-----------------------------------
Labels: pull-request-available (was: )
> Potential memory leaks in SourceOperator
> ----------------------------------------
>
> Key: FLINK-25827
> URL: https://issues.apache.org/jira/browse/FLINK-25827
> Project: Flink
> Issue Type: Bug
> Components: Runtime / Task
> Affects Versions: 1.15.0, 1.14.3
> Reporter: Piotr Nowojski
> Assignee: Piotr Nowojski
> Priority: Critical
> Labels: pull-request-available
> Fix For: 1.15.0, 1.14.4
>
>
> {{SourceOperator.SourceOperatorAvailabilityHelper}} is prone to the same type
> of memory leak as FLINK-25728. Every time new CompletableFuture.any is
> created:
> {code:java}
> currentCombinedFuture =
> CompletableFuture.anyOf(forcedStopFuture,
> sourceReaderFuture);
> return currentCombinedFuture;
> {code}
> Such future is never garbage collected, because {{forcedStopFuture}} will
> keep a reference to it. This will eventually lead to a memory leak, or force
> stopping might take very long time to complete.
--
This message was sent by Atlassian Jira
(v8.20.1#820001)