This is an automated email from the ASF dual-hosted git repository.
dongjoon 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 7742e73cac49 [SPARK-55709][K8S][TESTS] Fix
`ExecutorLifecycleTestUtils.persistentVolumeClaim` to use `ReadWriteOncePod`
instead of `ReadWriteOnce`
7742e73cac49 is described below
commit 7742e73cac49e6e2321f86fdcaf1472f6a006d1b
Author: Dongjoon Hyun <[email protected]>
AuthorDate: Thu Feb 26 08:29:03 2026 -0800
[SPARK-55709][K8S][TESTS] Fix
`ExecutorLifecycleTestUtils.persistentVolumeClaim` to use `ReadWriteOncePod`
instead of `ReadWriteOnce`
### What changes were proposed in this pull request?
This PR aims to fix `ExecutorLifecycleTestUtils.persistentVolumeClaim` to
use `ReadWriteOncePod` instead of `ReadWriteOnce`.
### Why are the changes needed?
Since Apache Spark 4.0.0, we used `ReadWriteOncePod` by default. We should
test the Apache Spark's behavior consistently.
- #44817
- #44985
### Does this PR introduce _any_ user-facing change?
No, this is a test case change.
### How was this patch tested?
Pass the CIs.
### Was this patch authored or co-authored using generative AI tooling?
Generated-by: `Gemini 3.1 Pro (High)` on `Antigravity`
Closes #54507 from dongjoon-hyun/SPARK-55709.
Authored-by: Dongjoon Hyun <[email protected]>
Signed-off-by: Dongjoon Hyun <[email protected]>
---
.../apache/spark/scheduler/cluster/k8s/ExecutorLifecycleTestUtils.scala | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/resource-managers/kubernetes/core/src/test/scala/org/apache/spark/scheduler/cluster/k8s/ExecutorLifecycleTestUtils.scala
b/resource-managers/kubernetes/core/src/test/scala/org/apache/spark/scheduler/cluster/k8s/ExecutorLifecycleTestUtils.scala
index fc75414e4a7e..272f41f30b58 100644
---
a/resource-managers/kubernetes/core/src/test/scala/org/apache/spark/scheduler/cluster/k8s/ExecutorLifecycleTestUtils.scala
+++
b/resource-managers/kubernetes/core/src/test/scala/org/apache/spark/scheduler/cluster/k8s/ExecutorLifecycleTestUtils.scala
@@ -260,7 +260,7 @@ object ExecutorLifecycleTestUtils {
.endMetadata()
.withNewSpec()
.withStorageClassName(storageClass)
- .withAccessModes("ReadWriteOnce")
+ .withAccessModes(DEFAULT_PVC_ACCESS_MODE)
.withResources(new VolumeResourceRequirementsBuilder()
.withRequests(Map("storage" -> new Quantity(size)).asJava).build())
.endSpec()
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]