Skip to content

Conversation

@catap
Copy link
Contributor

@catap catap commented Jan 28, 2015

Spark web UI return HTTP ERROR 500 when GET arguments is missing.

@AmplabJenkins
Copy link

Can one of the admins verify this patch?

@srowen
Copy link
Member

srowen commented Jan 28, 2015

I agree that 5xx means server error, and is not an appropriate response. But assuming a value of -1 doesn't seem like a great solution -- how about returning 400 Bad Request? (PS this needs a JIRA if it proceeds)

@catap
Copy link
Contributor Author

catap commented Jan 28, 2015

Ok, the patch was updated.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: paramater -> parameter

@catap catap force-pushed the ui_500 branch 2 times, most recently from ab826b4 to b6066e3 Compare January 28, 2015 16:58
@andrewor14
Copy link
Contributor

ok to test

@AmplabJenkins
Copy link

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

@andrewor14
Copy link
Contributor

retest this please

@SparkQA
Copy link

SparkQA commented Jan 30, 2015

Test build #26436 has started for PR 4239 at commit b6066e3.

  • This patch merges cleanly.

@SparkQA
Copy link

SparkQA commented Jan 31, 2015

Test build #26436 has finished for PR 4239 at commit b6066e3.

  • This patch fails Spark unit tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@AmplabJenkins
Copy link

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

@SparkQA
Copy link

SparkQA commented Feb 3, 2015

Test build #26623 has started for PR 4239 at commit ed4154d.

  • This patch merges cleanly.

@SparkQA
Copy link

SparkQA commented Feb 3, 2015

Test build #26623 has finished for PR 4239 at commit ed4154d.

  • 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/26623/
Test PASSed.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These imports were correct where they were I believe.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I use Intellij IDEA and this was changed imports.

@SparkQA
Copy link

SparkQA commented Feb 7, 2015

Test build #27004 has started for PR 4239 at commit 3ba74ba.

  • This patch merges cleanly.

@SparkQA
Copy link

SparkQA commented Feb 7, 2015

Test build #27004 has finished for PR 4239 at commit 3ba74ba.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds the following public classes (experimental):
    • case class MasterStateResponse(
    • class LocalSparkCluster(
    • * (4) the main class for the child
    • case class BoundPortsResponse(actorPort: Int, webUIPort: Int, restPort: Option[Int])
    • throw new SubmitRestMissingFieldException("Main class is missing.")

@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/27004/
Test PASSed.

@srowen
Copy link
Member

srowen commented Feb 7, 2015

It's looking good to me but can you make a JIRA (https://issues.apache.org/jira/browse/SPARK/) and put it into the title like SPARK-xxxx [WEB UI] ... ?

Spark web UI return `HTTP ERROR 500` when GET arguments is missing. Changed it to return a `HTTP ERROR 400`
@catap catap changed the title Don't return ERROR 500 when have missing args [SPARK-5672][Web UI] Don't return ERROR 500 when have missing args Feb 8, 2015
@SparkQA
Copy link

SparkQA commented Feb 8, 2015

Test build #27020 has started for PR 4239 at commit 520e180.

  • This patch merges cleanly.

@SparkQA
Copy link

SparkQA commented Feb 8, 2015

Test build #27020 has finished for PR 4239 at commit 520e180.

  • 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/27020/
Test PASSed.

asfgit pushed a commit that referenced this pull request Feb 8, 2015
Spark web UI return `HTTP ERROR 500` when GET arguments is missing.

Author: Kirill A. Korinskiy <[email protected]>

Closes #4239 from catap/ui_500 and squashes the following commits:

520e180 [Kirill A. Korinskiy] [SPARK-5672][Web UI] Return `HTTP ERROR 400` when have missing args

(cherry picked from commit 23a99da)
Signed-off-by: Sean Owen <[email protected]>
@asfgit asfgit closed this in 23a99da Feb 8, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants