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

[jira] [Assigned] (SPARK-55963) Optimize snapshot traversal in ExecutorPodsAllocator

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

Dongjoon Hyun reassigned SPARK-55963:
-------------------------------------

    Assignee: Dejiu Lu

> Optimize snapshot traversal in ExecutorPodsAllocator
> ----------------------------------------------------
>
>                 Key: SPARK-55963
>                 URL: https://issues.apache.org/jira/browse/SPARK-55963
>             Project: Spark
>          Issue Type: Improvement
>          Components: Kubernetes
>    Affects Versions: 4.1.1
>            Reporter: Dejiu Lu
>            Assignee: Dejiu Lu
>            Priority: Major
>              Labels: pull-request-available
>
> Optimize the snapshot preprocessing in `ExecutorPodsAllocator.onNewSnapshots()`.
> Currently, to collect known executor IDs and PVC names, the code calls `flatMap` + `distinct` across all snapshots. Since each snapshot is built incrementally via `withUpdate()`, they overlap heavily . This leads to a lot of redundant work.
> We can merge all snapshots into a single aggregated map up front, which deduplicates by executor ID naturally. PVC names are then extracted from this deduplicated map. 



--
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