You are viewing a plain text version of this content. The canonical link for it is here.
Posted to yarn-issues@hadoop.apache.org by "Rohith Sharma K S (JIRA)" <ji...@apache.org> on 2018/03/22 11:50:00 UTC

[jira] [Created] (YARN-8063) DistributedShellTimelinePlugin wrongly check for entityId instead of entityType

Rohith Sharma K S created YARN-8063:
---------------------------------------

             Summary: 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


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