dongjoon-hyun opened a new pull request #30080:
URL: https://github.com/apache/spark/pull/30080


   ### What changes were proposed in this pull request?
   
   If there is a conflict on `mountPath`, the pod is created and repeats the 
following error messages and keeps running.
   ```
   $ k get pod -l 'spark-role in (driver,executor)'
   NAME    READY   STATUS    RESTARTS   AGE
   tpcds   1/1     Running   0          4m20s
   ```
   
   ```
   20/10/18 05:09:26 WARN ExecutorPodsSnapshotsStoreImpl: Exception when 
notifying snapshot subscriber.
   io.fabric8.kubernetes.client.KubernetesClientException: Failure executing: 
POST at: 
https://2fba95910afd97c73b9a74acc07e0167.sk1.us-west-2.eks.amazonaws.com/api/v1/namespaces/default/pods.
 Message: Pod "tpcds-exec-1" is invalid: 
spec.containers[0].volumeMounts[1].mountPath: Invalid value: "/data1": must be 
unique. Received status: Status(apiVersion=v1, code=422, 
details=StatusDetails(causes=[StatusCause(field=spec.containers[0].volumeMounts[1].mountPath,
 message=Invalid value: "/data1": must be unique, reason=FieldValueInvalid, 
additionalProperties={})], group=null, kind=Pod, name=tpcds-exec-1, 
retryAfterSeconds=null, uid=null, additionalProperties={}), kind=Status, 
message=Pod "tpcds-exec-1" is invalid: 
spec.containers[0].volumeMounts[1].mountPath: Invalid value: "/data1": must be 
unique, metadata=ListMeta(_continue=null, remainingItemCount=null, 
resourceVersion=null, selfLink=null, additionalProperties={}), reason=Invalid, 
status=Failure, additionalProperties={}).
   We had better fail at Spark side.
   ```
   
   ### Why are the changes needed?
   <!--
   Please clarify why the changes are needed. For instance,
     1. If you propose a new API, clarify the use case for a new API.
     2. If you fix a bug, you can clarify why it is a bug.
   -->
   
   
   ### Does this PR introduce _any_ user-facing change?
   <!--
   Note that it means *any* user-facing change including all aspects such as 
the documentation fix.
   If yes, please clarify the previous behavior and the change this PR proposes 
- provide the console output, description and/or an example to show the 
behavior difference if possible.
   If possible, please also clarify if this is a user-facing change compared to 
the released Spark versions or within the unreleased branches such as master.
   If no, write 'No'.
   -->
   
   
   ### How was this patch tested?
   <!--
   If tests were added, say they were added here. Please make sure to add some 
test cases that check the changes thoroughly including negative and positive 
cases if possible.
   If it was tested in a way different from regular unit tests, please clarify 
how you tested step by step, ideally copy and paste-able, so that other 
reviewers can test and check, and descendants can verify in the future.
   If tests were not added, please describe why they were not added and/or why 
it was difficult to add.
   -->
   


----------------------------------------------------------------
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]

Reply via email to