[ https://issues.apache.org/jira/browse/SPARK-5760?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14317760#comment-14317760 ]
Apache Spark commented on SPARK-5760: ------------------------------------- User 'andrewor14' has created a pull request for this issue: https://github.com/apache/spark/pull/4557 > 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 > > 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-unsubscr...@spark.apache.org For additional commands, e-mail: issues-h...@spark.apache.org