Andrew Or created SPARK-5760:
--------------------------------
Summary: 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: [email protected]
For additional commands, e-mail: [email protected]