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/26 14:00:00 UTC

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

Piotr Nowojski created FLINK-25827:
--------------------------------------

             Summary: Potential memory leaks in SourceOperator
                 Key: FLINK-25827
                 URL: https://issues.apache.org/jira/browse/FLINK-25827
             Project: Flink
          Issue Type: Sub-task
          Components: Runtime / Task
    Affects Versions: 1.14.3, 1.15.0
            Reporter: Piotr Nowojski
             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)