This is an automated email from the ASF dual-hosted git repository.
dongjoon pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/spark-kubernetes-operator.git
The following commit(s) were added to refs/heads/main by this push:
new 758946c [SPARK-52645] Enable `ExitOnOutOfMemoryError` JVM option by
default
758946c is described below
commit 758946cd973e253cf919b9d54e9471403d2c2252
Author: Dongjoon Hyun <[email protected]>
AuthorDate: Tue Jul 1 20:56:10 2025 -0700
[SPARK-52645] Enable `ExitOnOutOfMemoryError` JVM option by default
### What changes were proposed in this pull request?
This Pr aims to enable `ExitOnOutOfMemoryError` JVM option by default.
### Why are the changes needed?
To help users identify the problematic situation as earlier as possible.
### Does this PR introduce _any_ user-facing change?
Yes, but OOM should not be ignored.
After this PR, the JVM will exit on the first `OutOfMemoryError` it
encounters, terminating the process with exit code 3.
### How was this patch tested?
Pass the CIs.
### Was this patch authored or co-authored using generative AI tooling?
No.
Closes #266 from dongjoon-hyun/SPARK-52645.
Authored-by: Dongjoon Hyun <[email protected]>
Signed-off-by: Dongjoon Hyun <[email protected]>
---
build-tools/helm/spark-kubernetes-operator/values.yaml | 2 +-
docs/operations.md | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/build-tools/helm/spark-kubernetes-operator/values.yaml
b/build-tools/helm/spark-kubernetes-operator/values.yaml
index b1b540a..92f28b4 100644
--- a/build-tools/helm/spark-kubernetes-operator/values.yaml
+++ b/build-tools/helm/spark-kubernetes-operator/values.yaml
@@ -41,7 +41,7 @@ operatorDeployment:
#
https://kubernetes.io/docs/concepts/scheduling-eviction/topology-spread-constraints/
topologySpreadConstraints: [ ]
operatorContainer:
- jvmArgs: "-Dfile.encoding=UTF8"
+ jvmArgs: "-Dfile.encoding=UTF8 -XX:+ExitOnOutOfMemoryError"
env:
- name: "SPARK_USER"
value: "spark"
diff --git a/docs/operations.md b/docs/operations.md
index a1b840e..05b45a7 100644
--- a/docs/operations.md
+++ b/docs/operations.md
@@ -76,7 +76,7 @@ following table:
| operatorDeployment.operatorPod.volumes | Additional
volumes to be added to the operator pod.
|
|
| operatorDeployment.operatorPod.priorityClassName | Priority
class name to be used for the operator pod
|
|
| operatorDeployment.operatorPod.securityContext | Security
context overrides for the operator pod
|
|
-| operatorDeployment.operatorContainer.jvmArgs | JVM arg
override for the operator container.
| `"-Dfile.encoding=UTF8"`
|
+| operatorDeployment.operatorContainer.jvmArgs | JVM arg
override for the operator container.
| `"-Dfile.encoding=UTF8 -XX:+ExitOnOutOfMemoryError"`
|
| operatorDeployment.operatorContainer.env | Custom env
to be added to the operator container.
|
|
| operatorDeployment.operatorContainer.envFrom | Custom
envFrom to be added to the operator container, e.g. for downward API.
|
|
| operatorDeployment.operatorContainer.probes | Probe config
for the operator container.
|
|
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]