hadoop-yarn-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sunil G (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (YARN-8063) DistributedShellTimelinePlugin wrongly check for entityId instead of entityType
Date Thu, 22 Mar 2018 14:54:00 GMT

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

Sunil G commented on YARN-8063:
-------------------------------

Changes look straight forward. +1

> DistributedShellTimelinePlugin wrongly check for entityId instead of entityType
> -------------------------------------------------------------------------------
>
>                 Key: YARN-8063
>                 URL: https://issues.apache.org/jira/browse/YARN-8063
>             Project: Hadoop YARN
>          Issue Type: Bug
>            Reporter: Rohith Sharma K S
>            Assignee: Rohith Sharma K S
>            Priority: Major
>         Attachments: YARN-8063.01.patch
>
>
> DistributedShellTimelinePlugin#getTimelineEntityGroupId compare with entityId rather
than entityType. This causes to fail to getTimelineEntityGroupId.  
> {code}
>  public Set<TimelineEntityGroupId> getTimelineEntityGroupId(String entityId,
>       String entityType) {
>     if (ApplicationMaster.DSEntity.DS_CONTAINER.toString().equals(entityId)) {
>       ContainerId containerId = ContainerId.fromString(entityId);
>       ApplicationId appId = containerId.getApplicationAttemptId()
>           .getApplicationId();
>       return toEntityGroupId(appId.toString());
>     }
>     return null;
>   }
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: yarn-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: yarn-issues-help@hadoop.apache.org


Mime
View raw message