[ 
https://issues.apache.org/jira/browse/FLINK-25827?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Piotr Nowojski updated FLINK-25827:
-----------------------------------
        Parent:     (was: FLINK-25728)
    Issue Type: Bug  (was: Sub-task)

> 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
>            Priority: Critical
>             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)

Reply via email to