From 430dd5404b91362977988e240686e9cedef5e6a5 Mon Sep 17 00:00:00 2001 From: Dongjoon Hyun Date: Tue, 1 Jul 2025 17:49:00 -0700 Subject: [PATCH] [SPARK-52645] Enable `ExitOnOutOfMemoryError` JVM option by default --- 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 b1b540aa..92f28b45 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 a1b840e6..05b45a7c 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. | |