You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by "dongjoon-hyun (via GitHub)" <gi...@apache.org> on 2026/08/05 21:42:42 UTC
[PR] [SPARK-58599] Add `Recovery-mode Executor` example [spark-kubernetes-operator]
dongjoon-hyun opened a new pull request, #786:
URL: https://github.com/apache/spark-kubernetes-operator/pull/786
### What changes were proposed in this pull request?
This PR aims to add a new example, `group-by-with-recovery-mode.yaml`, which demonstrates
`spark.kubernetes.allocation.recoveryMode.enabled` (SPARK-55639, Apache Spark 4.2.0).
The example runs `GroupByTest` where each mapper task materializes about 450MiB. With
`spark.executor.cores=3` and `spark.executor.memory=1g`, three concurrent tasks exceed the
executor heap and cause OOM. With the recovery mode enabled, every executor accepts only a
single task per executor JVM (`SPARK_EXECUTOR_CORES=1` while the pod still requests 3 CPUs),
so the whole heap serves one task and the job succeeds.
### Why are the changes needed?
To help users try out the recovery-mode executor feature of Apache Spark 4.2.0 with a
self-contained example that actually exercises the OOM boundary:
- As-is (`"true"`): the job succeeds with single-task executors.
- Set to `"false"`: the job fails with executor OOM (exit code 52).
- Removed: the recovery mode is activated automatically when the driver detects the OOM.
### Does this PR introduce _any_ user-facing change?
No. This is an example addition.
### How was this patch tested?
Manually tested on a local Kubernetes cluster with the operator built from this repository.
```
$ sed 's/{{SPARK_VERSION}}/4.2.0/' examples/group-by-with-recovery-mode.yaml | kubectl apply -f -
```
- `enabled: "true"` (as-is): executor pods request 3 CPUs but run with `SPARK_EXECUTOR_CORES=1`;
the application reached `Succeeded` and then `ResourceReleased`.
- `enabled: "false"`: all executors terminated with exit code 52 (`JVM OOM`) and the job failed
after task retries, as described in the example comment.
### Was this patch authored or co-authored using generative AI tooling?
Generated-by: Claude Fable 5
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
Re: [PR] [SPARK-58599] Add `Recovery-mode Executor` example [spark-kubernetes-operator]
Posted by "dongjoon-hyun (via GitHub)" <gi...@apache.org>.
dongjoon-hyun commented on PR #786:
URL: https://github.com/apache/spark-kubernetes-operator/pull/786#issuecomment-5201219841
Thank you so much, @peter-toth !
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
Re: [PR] [SPARK-58599] Add `Recovery-mode Executor` example [spark-kubernetes-operator]
Posted by "dongjoon-hyun (via GitHub)" <gi...@apache.org>.
dongjoon-hyun commented on PR #786:
URL: https://github.com/apache/spark-kubernetes-operator/pull/786#issuecomment-5201223055
Merged to main
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
Re: [PR] [SPARK-58599] Add `Recovery-mode Executor` example [spark-kubernetes-operator]
Posted by "dongjoon-hyun (via GitHub)" <gi...@apache.org>.
dongjoon-hyun closed pull request #786: [SPARK-58599] Add `Recovery-mode Executor` example
URL: https://github.com/apache/spark-kubernetes-operator/pull/786
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org