Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SPARK-5849] Handle more types of invalid JSON requests in SubmitRestProtocolMessage.parseAction #4637

Closed
wants to merge 1 commit into from

Conversation

JoshRosen
Copy link
Contributor

This patch improves SubmitRestProtocol's handling of invalid JSON requests in cases where those requests were parsable as JSON but not as JSON objects (e.g. they could be parsed as ararys or strings). I replaced an unchecked cast with pattern-matching and added a new test case.

@JoshRosen
Copy link
Contributor Author

/cc @andrewor14

@SparkQA
Copy link

SparkQA commented Feb 16, 2015

Test build #27592 has started for PR 4637 at commit b3f282b.

  • This patch merges cleanly.

@JoshRosen JoshRosen changed the title [SPARK-5849] Handle more types of invalid JSON in SubmitRestProtocolMessage.parseAction [SPARK-5849] Handle more types of invalid JSON requests in SubmitRestProtocolMessage.parseAction Feb 16, 2015
@SparkQA
Copy link

SparkQA commented Feb 17, 2015

Test build #27592 has finished for PR 4637 at commit b3f282b.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@AmplabJenkins
Copy link

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/27592/
Test PASSed.

@andrewor14
Copy link
Contributor

Okay merging this into master 1.3 thanks @JoshRosen

@asfgit asfgit closed this in 58a82a7 Feb 17, 2015
asfgit pushed a commit that referenced this pull request Feb 17, 2015
…ProtocolMessage.parseAction

This patch improves SubmitRestProtocol's handling of invalid JSON requests in cases where those requests were parsable as JSON but not as JSON objects (e.g. they could be parsed as ararys or strings).  I replaced an unchecked cast with pattern-matching and added a new test case.

Author: Josh Rosen <joshrosen@databricks.com>

Closes #4637 from JoshRosen/rest-protocol-cast and squashes the following commits:

b3f282b [Josh Rosen] [SPARK-5849] Handle more types of invalid JSON in SubmitRestProtocolMessage.parseAction

(cherry picked from commit 58a82a7)
Signed-off-by: Andrew Or <andrew@databricks.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants