You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Cheng Pan (Jira)" <ji...@apache.org> on 2026/08/13 03:55:00 UTC

[jira] [Assigned] (SPARK-58714) Fix AdminClient leak in KafkaTokenUtil.obtainToken

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

Cheng Pan reassigned SPARK-58714:
---------------------------------

    Assignee: Cheng Pan

> Fix AdminClient leak in KafkaTokenUtil.obtainToken
> --------------------------------------------------
>
>                 Key: SPARK-58714
>                 URL: https://issues.apache.org/jira/browse/SPARK-58714
>             Project: Spark
>          Issue Type: Bug
>          Components: Structured Streaming
>    Affects Versions: 5.0.0
>            Reporter: Cheng Pan
>            Assignee: Cheng Pan
>            Priority: Major
>              Labels: pull-request-available
>
> KafkaTokenUtil.obtainToken creates an AdminClient but never closes it, on either the success or the exception path. Each token obtain cycle (per cluster, per renewal) and each failed attempt leaks the client's network thread and sockets in long-running drivers.
> Introduced by SPARK-25501 (Spark 3.0.0); affects all releases since (3.0.0 - 4.2.0).



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org