You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Chao Sun (Jira)" <ji...@apache.org> on 2026/03/31 16:03:00 UTC
[jira] [Resolved] (SPARK-56235) TaskSetManager.executorLost() O(N) scan over taskInfos causes DriverEndpoint thread stall with large task counts
[ https://issues.apache.org/jira/browse/SPARK-56235?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Chao Sun resolved SPARK-56235.
------------------------------
Fix Version/s: 4.2.0
4.1.2
Resolution: Fixed
> TaskSetManager.executorLost() O(N) scan over taskInfos causes DriverEndpoint thread stall with large task counts
> ----------------------------------------------------------------------------------------------------------------
>
> Key: SPARK-56235
> URL: https://issues.apache.org/jira/browse/SPARK-56235
> Project: Spark
> Issue Type: Improvement
> Components: Spark Core
> Affects Versions: 4.1.1
> Reporter: Dejiu Lu
> Assignee: Dejiu Lu
> Priority: Major
> Labels: pull-request-available
> Fix For: 4.2.0, 4.1.2
>
>
> When a stage has a large number of tasks (e.g., 5 million), `TaskSetManager.executorLost()` becomes a severe bottleneck due to O(N) full scan over the `taskInfos` HashMap. Combined with batch executor removal from dynamic allocation, this blocks the `DriverEndpoint` single-threaded RPC processor for 100+ seconds, causing task status updates to be delayed and making the job appear stuck.
--
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