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

[jira] [Created] (SPARK-39864) ExecutionListenerManager's registration of the ExecutionListenerBus should be lazy

Josh Rosen created SPARK-39864:
----------------------------------

             Summary: ExecutionListenerManager's registration of the ExecutionListenerBus should be lazy
                 Key: SPARK-39864
                 URL: https://issues.apache.org/jira/browse/SPARK-39864
             Project: Spark
          Issue Type: Improvement
          Components: SQL
    Affects Versions: 2.0.0
            Reporter: Josh Rosen
            Assignee: Josh Rosen


Today, ExecutionListenerManager eagerly registers an ExecutionListenerBus SparkListener when it is created, even if the SparkSession has no query execution listeners registered. In applications with many short-lived SparkSessions, this can cause a buildup of empty listeners on the shared listener bus, increasing Spark listener processing times on the driver.

If we make the registration lazy then we avoid this driver-side listener performance overhead.



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