HyukjinKwon commented on a change in pull request #30084:
URL: https://github.com/apache/spark/pull/30084#discussion_r507042357
##########
File path:
resource-managers/kubernetes/core/src/main/scala/org/apache/spark/deploy/k8s/features/MountVolumesFeatureStep.scala
##########
@@ -49,6 +49,11 @@ private[spark] class MountVolumesFeatureStep(conf:
KubernetesConf)
private def constructVolumes(
volumeSpecs: Iterable[KubernetesVolumeSpec]
): Iterable[(VolumeMount, Volume)] = {
+ val duplicateMountPaths =
volumeSpecs.map(_.mountPath).toSeq.groupBy(identity).collect {
+ case (x, ys) if ys.length > 1 => s"`$x`"
+ }
+ require(duplicateMountPaths.isEmpty,
+ s"Found duplicated mountPath: ${duplicateMountPaths.mkString(",")}")
Review comment:
I would add one space at `mkString(",")`: `mkString(", ")`
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]