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

uros-b 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 bf7b76197cec [SPARK-58184][CORE] Remove dead ExternalBlockStore 
executor exit codes
bf7b76197cec is described below

commit bf7b76197cecf74da3c9f4db6413dba3fe714fcf
Author: Matthew B. <[email protected]>
AuthorDate: Wed Jul 22 15:47:06 2026 +0000

    [SPARK-58184][CORE] Remove dead ExternalBlockStore executor exit codes
    
    ### What changes were proposed in this pull request?
    
    Remove the unused `EXTERNAL_BLOCK_STORE_FAILED_TO_INITIALIZE` (54) and 
`EXTERNAL_BLOCK_STORE_FAILED_TO_CREATE_DIR` (55) constants and their 
`explainExitCode` cases (plus two stale TODOs) from `ExecutorExitCode.scala`.
    
    ### Why are the changes needed?
    
    These codes belonged to the off-heap `ExternalBlockStore` (Tachyon) feature 
removed by SPARK-12667 in 2016. Nothing sets them anymore, so an executor can 
never exit with 54 or 55; they are dead code left behind by that removal.
    
    ### Does this PR introduce _any_ user-facing change?
    
    No
    
    ### How was this patch tested?
    
    Existing tests: pure removal of unreachable code with no behavior change.
    
    ### Was this patch authored or co-authored using generative AI tooling?
    
    Yes Discovered-By: Claude Opus 4.8
    
    Closes #57326 from Ma77Ball/SPARK-58184.
    
    Authored-by: Matthew B. <[email protected]>
    Signed-off-by: Uros Bojanic <[email protected]>
---
 .../scala/org/apache/spark/executor/ExecutorExitCode.scala    | 11 -----------
 1 file changed, 11 deletions(-)

diff --git 
a/core/src/main/scala/org/apache/spark/executor/ExecutorExitCode.scala 
b/core/src/main/scala/org/apache/spark/executor/ExecutorExitCode.scala
index 7f0be5c1b704..6d0a9385133c 100644
--- a/core/src/main/scala/org/apache/spark/executor/ExecutorExitCode.scala
+++ b/core/src/main/scala/org/apache/spark/executor/ExecutorExitCode.scala
@@ -33,12 +33,6 @@ object ExecutorExitCode {
   /** DiskStore failed to create a local temporary directory after many 
attempts. */
   val DISK_STORE_FAILED_TO_CREATE_DIR = 53
 
-  /** ExternalBlockStore failed to initialize after many attempts. */
-  val EXTERNAL_BLOCK_STORE_FAILED_TO_INITIALIZE = 54
-
-  /** ExternalBlockStore failed to create a local temporary directory after 
many attempts. */
-  val EXTERNAL_BLOCK_STORE_FAILED_TO_CREATE_DIR = 55
-
   /**
    * Executor is unable to send heartbeats to the driver more than
    * "spark.executor.heartbeat.maxFailures" times.
@@ -59,11 +53,6 @@ object ExecutorExitCode {
       case OOM => "OutOfMemoryError"
       case DISK_STORE_FAILED_TO_CREATE_DIR =>
         "Failed to create local directory (bad spark.local.dir?)"
-      // TODO: replace external block store with concrete implementation name
-      case EXTERNAL_BLOCK_STORE_FAILED_TO_INITIALIZE => "ExternalBlockStore 
failed to initialize."
-      // TODO: replace external block store with concrete implementation name
-      case EXTERNAL_BLOCK_STORE_FAILED_TO_CREATE_DIR =>
-        "ExternalBlockStore failed to create a local temporary directory."
       case HEARTBEAT_FAILURE =>
         "Unable to send heartbeats to driver."
       case BLOCK_MANAGER_REREGISTRATION_FAILED =>


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to