You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kafka.apache.org by ch...@apache.org on 2024/07/30 20:23:38 UTC

(kafka) branch trunk updated: KAFKA-17203 StreamThread leaking producer instances (#16730)

This is an automated email from the ASF dual-hosted git repository.

chia7712 pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/kafka.git


The following commit(s) were added to refs/heads/trunk by this push:
     new fd2cd046f82 KAFKA-17203 StreamThread leaking producer instances (#16730)
fd2cd046f82 is described below

commit fd2cd046f82b11f654003034c78c4ccc76fad2e5
Author: PoAn Yang <pa...@apache.org>
AuthorDate: Wed Jul 31 04:23:32 2024 +0800

    KAFKA-17203 StreamThread leaking producer instances (#16730)
    
    Reviewers: Chia-Ping Tsai <ch...@gmail.com>
---
 .../java/org/apache/kafka/streams/processor/internals/TaskManager.java | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/streams/src/main/java/org/apache/kafka/streams/processor/internals/TaskManager.java b/streams/src/main/java/org/apache/kafka/streams/processor/internals/TaskManager.java
index bde092cfe49..b8bafedf296 100644
--- a/streams/src/main/java/org/apache/kafka/streams/processor/internals/TaskManager.java
+++ b/streams/src/main/java/org/apache/kafka/streams/processor/internals/TaskManager.java
@@ -515,8 +515,7 @@ public class TaskManager {
     private void handleTasksPendingInitialization() {
         // All tasks pending initialization are not part of the usual bookkeeping
         for (final Task task : tasks.drainPendingTasksToInit()) {
-            task.suspend();
-            task.closeClean();
+            closeTaskClean(task, Collections.emptySet(), Collections.emptyMap());
         }
     }