You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Sean Owen (JIRA)" <ji...@apache.org> on 2017/09/04 08:57:00 UTC

[jira] [Resolved] (SPARK-21892) status code is 200 OK when kill application fail via spark master rest api

     [ https://issues.apache.org/jira/browse/SPARK-21892?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sean Owen resolved SPARK-21892.
-------------------------------
    Resolution: Not A Problem

> 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: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org