Uploaded image for project: 'Hadoop Map/Reduce'
  1. Hadoop Map/Reduce
  2. MAPREDUCE-6210

Use getApplicationAttemptId() instead of getApplicationID() for logging AttemptId in RMContainerAllocator.java

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.6.0
    • Fix Version/s: 2.7.0
    • Component/s: applicationmaster
    • Labels:
      None
    • Target Version/s:
    • Hadoop Flags:
      Reviewed

      Description

      It's confusing in the following codes of RMContainerAllocator.java .

      RMContainerAllocator.java
            throw new YarnRuntimeException(
              "Resource Manager doesn't recognize AttemptId: "
                  + this.getContext().getApplicationID(), e);
      

      Here should be getApplicationAttemptId() instead of getApplicationID().

        Attachments

        1. MAPREDUCE-6210.patch
          1 kB
          Leitao Guo

          Activity

            People

            • Assignee:
              guoleitao Leitao Guo
              Reporter:
              guoleitao Leitao Guo
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: