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)