Uploaded image for project: 'Hadoop YARN'
  1. Hadoop YARN
  2. YARN-8063

DistributedShellTimelinePlugin wrongly check for entityId instead of entityType

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.1.0, 2.10.0, 3.0.3
    • Component/s: None
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      DistributedShellTimelinePlugin#getTimelineEntityGroupId compare with entityId rather than entityType. This causes to fail to getTimelineEntityGroupId.

       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;
        }
      

        Attachments

        1. YARN-8063.01.patch
          3 kB
          Rohith Sharma K S

          Activity

            People

            • Assignee:
              rohithsharma Rohith Sharma K S
              Reporter:
              rohithsharma Rohith Sharma K S
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: