Skip to content

Commit 7742e73

Browse files
committed
[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 <dongjoon@apache.org> Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
1 parent 02453b1 commit 7742e73

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

resource-managers/kubernetes/core/src/test/scala/org/apache/spark/scheduler/cluster/k8s/ExecutorLifecycleTestUtils.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ object ExecutorLifecycleTestUtils {
260260
.endMetadata()
261261
.withNewSpec()
262262
.withStorageClassName(storageClass)
263-
.withAccessModes("ReadWriteOnce")
263+
.withAccessModes(DEFAULT_PVC_ACCESS_MODE)
264264
.withResources(new VolumeResourceRequirementsBuilder()
265265
.withRequests(Map("storage" -> new Quantity(size)).asJava).build())
266266
.endSpec()

0 commit comments

Comments
 (0)