spark-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Carson Wang (JIRA)" <>
Subject [jira] [Created] (SPARK-12399) Display correct error message when accessing REST API with an unknown app Id
Date Thu, 17 Dec 2015 07:42:46 GMT
Carson Wang created SPARK-12399:

             Summary: Display correct error message when accessing REST API with an unknown
app Id
                 Key: SPARK-12399
             Project: Spark
          Issue Type: Bug
          Components: Web UI
    Affects Versions: 1.5.2
            Reporter: Carson Wang
            Priority: Minor

I got an exception when accessing the below REST API with an unknown application Id.

Instead of an exception, I expect an error message "no such app: xxx" which is a similar error
message when I access "/api/v1/applications/xxx"

org.spark-project.guava.util.concurrent.UncheckedExecutionException: java.util.NoSuchElementException:
no app with key xxx
	at org.spark-project.guava.cache.LocalCache$Segment.get(
	at org.spark-project.guava.cache.LocalCache.get(
	at org.spark-project.guava.cache.LocalCache.getOrLoad(
	at org.spark-project.guava.cache.LocalCache$LocalLoadingCache.get(
	at org.apache.spark.deploy.history.HistoryServer.getSparkUI(HistoryServer.scala:116)
	at org.apache.spark.status.api.v1.UIRoot$class.withSparkUI(ApiRootResource.scala:226)
	at org.apache.spark.deploy.history.HistoryServer.withSparkUI(HistoryServer.scala:46)
	at org.apache.spark.status.api.v1.ApiRootResource.getJobs(ApiRootResource.scala:66)

This message was sent by Atlassian JIRA

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message