[
https://issues.apache.org/jira/browse/SPARK-21892?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16150171#comment-16150171
]
Sean Owen commented on SPARK-21892:
-----------------------------------
The request succeeded at the HTTP level. The application action failed. That
doesn't necessarily mean the transport layer should report a failure too.
> status code is 200 OK when kill application fail via spark master rest api
> ---------------------------------------------------------------------------
>
> Key: SPARK-21892
> URL: https://issues.apache.org/jira/browse/SPARK-21892
> Project: Spark
> Issue Type: Improvement
> Components: Spark Core
> Affects Versions: 2.1.0
> Reporter: Zhuang Xueyin
> Priority: Minor
>
> Sent a post request to spark master restapi, eg:
> http://<host>:6066/v1/submissions/kill/driver-xxx
> Request body:
> {
> "action" : "KillSubmissionRequest",
> "clientSparkVersion" : "2.1.0",
> }
> Response body:
> {
> "action" : "KillSubmissionResponse",
> "message" : "Driver driver-xxx has already finished or does not exist",
> "serverSparkVersion" : "2.1.0",
> "submissionId" : "driver-xxx",
> "success" : false
> }
> Response headers:
> * Status Code: 200 OK*
> Content-Length: 203
> Content-Type: application/json; charset=UTF-8
> Date: Fri, 01 Sep 2017 05:56:04 GMT
> Server: Jetty(9.2.z-SNAPSHOT)
> Result:
> status code is 200 OK when kill application fail via spark master rest api.
> While the response body indicates that the update is not successfully, this
> is not rest api standard, suggest to improve it.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]