You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Marcelo Vanzin (JIRA)" <ji...@apache.org> on 2015/12/30 22:50:49 UTC
[jira] [Resolved] (SPARK-12399) Display correct error message when
accessing REST API with an unknown app Id
[ https://issues.apache.org/jira/browse/SPARK-12399?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Marcelo Vanzin resolved SPARK-12399.
------------------------------------
Resolution: Fixed
Assignee: Carson Wang
Fix Version/s: 2.0.0
1.6.1
> Display correct error message when accessing REST API with an unknown app Id
> ----------------------------------------------------------------------------
>
> Key: SPARK-12399
> URL: https://issues.apache.org/jira/browse/SPARK-12399
> Project: Spark
> Issue Type: Bug
> Components: Web UI
> Affects Versions: 1.5.2
> Reporter: Carson Wang
> Assignee: Carson Wang
> Priority: Minor
> Fix For: 1.6.1, 2.0.0
>
>
> I got an exception when accessing the below REST API with an unknown application Id.
> http://<server-url>:18080/api/v1/applications/xxx/jobs
> 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"
> {code}
> org.spark-project.guava.util.concurrent.UncheckedExecutionException: java.util.NoSuchElementException: no app with key xxx
> at org.spark-project.guava.cache.LocalCache$Segment.get(LocalCache.java:2263)
> at org.spark-project.guava.cache.LocalCache.get(LocalCache.java:4000)
> at org.spark-project.guava.cache.LocalCache.getOrLoad(LocalCache.java:4004)
> at org.spark-project.guava.cache.LocalCache$LocalLoadingCache.get(LocalCache.java:4874)
> 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)
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org