[ 
https://issues.apache.org/jira/browse/YARN-3530?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14508023#comment-14508023
 ] 

Zhijie Shen commented on YARN-3530:
-----------------------------------

The problem is that the fields are set not to include other info, such that 
that the entity has null other info map. The secondary filter is matched after 
the entity is loaded. It tries to compare with null other info map, and results 
in NPE.

The fix is to always include primary filters and other info into the fields if 
secondary filters are non-empty for matching, and remove them from the entity 
before returning it back to the caller.

> ATS throws exception on trying to filter results without otherinfo.
> -------------------------------------------------------------------
>
>                 Key: YARN-3530
>                 URL: https://issues.apache.org/jira/browse/YARN-3530
>             Project: Hadoop YARN
>          Issue Type: Bug
>          Components: timelineserver
>            Reporter: Sreenath Somarajapuram
>            Assignee: Zhijie Shen
>            Priority: Critical
>         Attachments: YARN-3530.1.patch
>
>
> Scenario:
> Am attempting to make data loading faster by fetching otherinfo on demand. As 
> shown in the attached image, the patch adds a 'Load Counters' checkbox. It 
> would be disabled by default, and on clicking, the counter data also would be 
> loaded.
> Issue:
> Things are good when otherinfo is loaded.
> But ATS throws exception on trying to filter on status or applicationId 
> without otherinfo in fields list.
> In other words, using fields=events,primaryfilters with 
> secondaryFilter=status:RUNNING will return
> { "exception": "WebApplicationException", "message": 
> "java.lang.NullPointerException", "javaClassName": 
> "javax.ws.rs.WebApplicationException" }
> from the server.



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

Reply via email to