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

The attempt id displayed on the graph-view tab in the YARN-UI2 page is wrong

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 3.1.1
    • None
    • yarn-ui-v2

    Description

      ShortAppAttemptId displayed on the page was got by shortAppAttemptId()=> containerIdToAttemptIdontainerIdToAttemptId

      shortAppAttemptId: function() {
          if (!this.get("containerId")) {
            return this.get("id");
          }
          return "attempt_" +
                 parseInt(Converter.containerIdToAttemptId(this.get("containerId")).split("_")[3]);
        }.property("containerId"),
      
      
      containerIdToAttemptIdontainerIdToAttemptId: function(containerId) {
          if (containerId) {
      // containerId example : container_e73_1605851303713_0005_01_000001
       // try to get the attempt id (marked in red), but the actual attempt id is *01*
            var arr = containerId.split('_');
            var attemptId = ["appattempt", arr[1],
              arr[2], this.padding(arr[3], 6)];
            return attemptId.join('_');
          }
        },
      

      Attachments

        1. Graph View ApptemptID shows error.png
          12 kB
          huangkunlun
        2. Grid View ApptemptID shows Ok.png
          22 kB
          huangkunlun

        Issue Links

          Activity

            People

              Unassigned Unassigned
              echohlne huangkunlun
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 40m
                  40m