[ 
https://issues.apache.org/jira/browse/YARN-2900?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Zhijie Shen updated YARN-2900:
------------------------------
    Attachment: YARN-2900.20150529.patch

[~mitdesai], thanks for the last patch, but I realize that there's one behavior 
change w.r.t letting ApplicationHistoryManagerOnTimelineStore return null 
instead of throwing exception. Before the patch, when we get an attempt or a 
container, we will signal different exception to let user know if the app is 
completely missing or we just don't fine the particular attempt or container. 
So I create another patch that retains your test cases, but fix 500->404 
problem by mapping the not found exception to 404 in web services class, which 
should be more lightweight. [~xgong], can you take a look at this patch too?

Another issue is {{java.lang.IllegalStateException: STREAM}} that I observed 
during my local test. It seems not to be caused by this Jira, but to be an 
existing problem when YARN web app returns 404 and accepts XML content. I could 
see both RM and ATS REST API are encountering the same issue. I filed a 
separate Jira for it: YARN-3746

> Application (Attempt and Container) Not Found in AHS results in Internal 
> Server Error (500)
> -------------------------------------------------------------------------------------------
>
>                 Key: YARN-2900
>                 URL: https://issues.apache.org/jira/browse/YARN-2900
>             Project: Hadoop YARN
>          Issue Type: Sub-task
>          Components: timelineserver
>            Reporter: Jonathan Eagles
>            Assignee: Mit Desai
>         Attachments: YARN-2900-b2-2.patch, YARN-2900-b2.patch, 
> YARN-2900.20150529.patch, YARN-2900.patch, YARN-2900.patch, YARN-2900.patch, 
> YARN-2900.patch, YARN-2900.patch, YARN-2900.patch, YARN-2900.patch, 
> YARN-2900.patch
>
>
> Caused by: java.lang.NullPointerException
>       at 
> org.apache.hadoop.yarn.server.applicationhistoryservice.ApplicationHistoryManagerImpl.convertToApplicationReport(ApplicationHistoryManagerImpl.java:128)
>       at 
> org.apache.hadoop.yarn.server.applicationhistoryservice.ApplicationHistoryManagerImpl.getApplication(ApplicationHistoryManagerImpl.java:118)
>       at 
> org.apache.hadoop.yarn.server.webapp.WebServices$2.run(WebServices.java:222)
>       at 
> org.apache.hadoop.yarn.server.webapp.WebServices$2.run(WebServices.java:219)
>       at java.security.AccessController.doPrivileged(Native Method)
>       at javax.security.auth.Subject.doAs(Subject.java:415)
>       at 
> org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1679)
>       at 
> org.apache.hadoop.yarn.server.webapp.WebServices.getApp(WebServices.java:218)
>       ... 59 more



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to