Uh oh!
There was an error while loading. Please reload this page.
[SPARK-39006][K8S] Check PVC claimName must be OnDemand when multiple executors required - #36333
[SPARK-39006][K8S] Check PVC claimName must be OnDemand when multiple executors required#36333dcoliversun wants to merge 3 commits into
Conversation
… executors required
dcoliversun
commented
Apr 24, 2022
Pass IT test |
dcoliversun
commented
Apr 24, 2022
@dongjoon-hyun |
AmplabJenkins
commented
Apr 24, 2022
Can one of the admins verify this patch? |
Uh oh!
There was an error while loading. Please reload this page.
| val executorConf = | ||
| KubernetesTestConf.createExecutorConf(sparkConf = conf, volumes = Seq(volumeConf)) | ||
| val executorStep = new MountVolumesFeatureStep(executorConf) | ||
| assertThrows[IllegalArgumentException] { |
There was a problem hiding this comment.
IMO it would be good to assert on the exception message too. Or use a specialized exception.
There was a problem hiding this comment.
Thanks for your help. I have addressed this comment.
…ark/deploy/k8s/features/MountVolumesFeatureStep.scala Co-authored-by: Martin Grigorov <martin-g@users.noreply.github.com>
There was a problem hiding this comment.
Sorry, but -1 for this proposal because this will break SPARK-32713.
Apache Spark has been supporting claimName=pvc-spark-SPARK_EXECUTOR_ID style before OnDemand feature.
dongjoon-hyun
commented
Apr 26, 2022
Let me close this first. We can continue to discuss and reopen if there is a valid reason, @dcoliversun . |
dcoliversun
commented
Apr 27, 2022
@dongjoon-hyun I can also check |
To me, this PR sounds like a misleading UX instead of improving UX.
|
dcoliversun
commented
Apr 27, 2022
I could change the title as |
dongjoon-hyun
commented
Apr 27, 2022
You are still misunderstanding SPARK-32713 which supports multiple executors :)
|
dongjoon-hyun
commented
Apr 27, 2022
@dcoliversun If you want to continue in your way, I'd like to recommend to revise the JIRA issue first like |
dcoliversun
commented
Apr 27, 2022
@dongjoon-hyun Thanks for your help and I will revise the JIRA issue. I want to confirm with you that my understanding is correct. |
dcoliversun
commented
Apr 27, 2022
replace with #36374 |
What changes were proposed in this pull request?
This PR aims to check PVC claimName must be
OnDemandwhen multiple executors required.Why are the changes needed?
#29846 supports dynamic PVC creation/deletion for K8s executors. When not set
spark.kubernetes.executor.volumes.persistentVolumeClaim.spark-local-dir-1.options.claimNamebeonDemand, it will retry to create executor pods long time because pvc with same name already exists.After this PR, spark application exits with IllegalArgumentException at once and help user to fix parameter.
Does this PR introduce any user-facing change?
No.
How was this patch tested?
Add new unit test.