You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spark.apache.org by gu...@apache.org on 2026/09/11 11:14:03 UTC

(spark) branch master updated: [SPARK-59061][CORE][FOLLOWUP] List all eight StandaloneAppClientListener callbacks in its doc

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

HyukjinKwon pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/spark.git


The following commit(s) were added to refs/heads/master by this push:
     new 15ec0e55b5d5 [SPARK-59061][CORE][FOLLOWUP] List all eight StandaloneAppClientListener callbacks in its doc
15ec0e55b5d5 is described below

commit 15ec0e55b5d5faa9b7844978eddfec696f95f778
Author: Hyukjin Kwon <gu...@apache.org>
AuthorDate: Fri Sep 11 20:13:48 2026 +0900

    [SPARK-59061][CORE][FOLLOWUP] List all eight StandaloneAppClientListener callbacks in its doc
    
    ### What changes were proposed in this pull request?
    
    Follow-up to SPARK-59061. The `StandaloneAppClientListener` trait overview said there were "six
    events" and enumerated six callbacks, but the trait declares eight: the summary omitted the
    pre-existing `dead` (application death) and `executorDecommissioned` callbacks. This corrects the
    count and lists all eight.
    
    ### Why are the changes needed?
    
    The doc under-counted the callbacks a listener must handle, which is misleading for implementers.
    
    ### Does this PR introduce _any_ user-facing change?
    
    No. Documentation-only change to an internal (`private[spark]`) trait.
    
    ### How was this patch tested?
    
    N/A (comment-only change).
    
    ### Was this patch authored or co-authored using generative AI tooling?
    
    Generated-by: Isaac
    
    Co-authored-by: Isaac <no-replydatabricks.com>
    
    This pull request and its description were written by Isaac.
    
    Closes #58723 from HyukjinKwon/SPARK-59061-followup-listener-doc.
    
    Authored-by: Hyukjin Kwon <gu...@apache.org>
    Signed-off-by: Hyukjin Kwon <hy...@databricks.com>
---
 .../apache/spark/deploy/client/StandaloneAppClientListener.scala | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/core/src/main/scala/org/apache/spark/deploy/client/StandaloneAppClientListener.scala b/core/src/main/scala/org/apache/spark/deploy/client/StandaloneAppClientListener.scala
index 000a46daa8d4..690899f4e804 100644
--- a/core/src/main/scala/org/apache/spark/deploy/client/StandaloneAppClientListener.scala
+++ b/core/src/main/scala/org/apache/spark/deploy/client/StandaloneAppClientListener.scala
@@ -22,10 +22,11 @@ import scala.concurrent.Future
 import org.apache.spark.scheduler.ExecutorDecommissionInfo
 
 /**
- * Callbacks invoked by deploy client when various events happen. There are currently six events:
- * connecting to the cluster, disconnecting, being given an executor, having an executor removed
- * (either due to failure or due to revocation), having a worker removed, and being asked by the
- * Master to hold or resume the application.
+ * Callbacks invoked by deploy client when various events happen. There are currently eight
+ * events: connecting to the cluster, disconnecting, an application death, being given an
+ * executor, having an executor removed (either due to failure or due to revocation), having an
+ * executor decommissioned, having a worker removed, and being asked by the Master to hold or
+ * resume the application.
  *
  * Users of this API should *not* block inside the callback methods.
  */


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