[
https://issues.apache.org/jira/browse/TEZ-2346?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14504809#comment-14504809
]
Prakash Ramachandran commented on TEZ-2346:
-------------------------------------------
[~Sreenath]
bq. In the above scenario am trying to filer based on status and applicationId.
As both of them are available in primaryfilters, am not sure why we are
depended on otherinfo.
ats allows only one primaryfilter. so in tez ui, if more than one filter is
specified as primary it is moved to secondaryfilter (status, dagname etc are
present in both and timeline checks in both otherinfo and primaryfilter for the
same - see getFilterProperties in paginated_content.js for the setting of
filters from UI). ats first filters by primary and then by secondary.
also the status is updated in primaryFilters only after the dag finishes.
regarding the exception - I believe the following code causes the issue (since
no otherinfo is specified in the fields entity.getOtherInfo will be null and
the get will cause NPE).
{code:title=LeveldbTimelineStore.java}
if (fields.contains(Field.OTHER_INFO)) {
otherInfo = true;
} else {
entity.setOtherInfo(null);
}
...
...
public void setOtherInfo(Map<String, Object> otherInfo) {
if (otherInfo != null && !(otherInfo instanceof HashMap)) {
this.otherInfo = new HashMap<String, Object>(otherInfo);
} else {
this.otherInfo = (HashMap<String, Object>) otherInfo;
}
}
{code}
{code:title=LeveldbTimelineStore.java}
if (secondaryFilters != null) {
for (NameValuePair filter : secondaryFilters) {
Object v = entity.getOtherInfo().get(filter.getName());
{code}
> TEZ-UI: Load other info / counter data on demand
> ------------------------------------------------
>
> Key: TEZ-2346
> URL: https://issues.apache.org/jira/browse/TEZ-2346
> Project: Apache Tez
> Issue Type: Sub-task
> Reporter: Sreenath Somarajapuram
> Assignee: Sreenath Somarajapuram
> Attachments: Screen-Shot-2015-04-21-at-1.56.28-AM.jpg,
> TEZ-2346.wip.1.patch
>
>
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)