You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Piotr Nowojski (Jira)" <ji...@apache.org> on 2022/01/31 08:56:00 UTC

[jira] [Assigned] (FLINK-25827) Potential memory leaks in SourceOperator

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

Piotr Nowojski reassigned FLINK-25827:
--------------------------------------

    Assignee: Piotr Nowojski

> 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
>             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)