You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Andrew Or (JIRA)" <ji...@apache.org> on 2015/02/12 23:48:11 UTC

[jira] [Closed] (SPARK-5760) StandaloneRestClient/Server error behavior is incorrect

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

Andrew Or closed SPARK-5760.
----------------------------
       Resolution: Fixed
    Fix Version/s: 1.3.0

> StandaloneRestClient/Server error behavior is incorrect
> -------------------------------------------------------
>
>                 Key: SPARK-5760
>                 URL: https://issues.apache.org/jira/browse/SPARK-5760
>             Project: Spark
>          Issue Type: Bug
>          Components: Spark Core
>    Affects Versions: 1.3.0
>            Reporter: Andrew Or
>            Assignee: Andrew Or
>            Priority: Critical
>             Fix For: 1.3.0
>
>
> There are three main known issues:
> (1) Server would always send the JSON to the servlet's output stream. However, if the response code is not 200, the client reads from the error stream instead. The server must write to the correct stream depending on the response code.
> (2) If the server returns an empty response (no JSON), then both output and error streams are null at the client, leading to NPEs. This happens if the server throws an internal exception that it cannot recover from.
> (3) The default error handling servlet did not match the URL cases correctly, because there are empty strings in the list.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org