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

Getting application(s) goes wrong when app finishes before starting the attempt

Log workAgile BoardRank to TopRank to BottomAttach filesAttach ScreenshotBulk Copy AttachmentsBulk Move AttachmentsVotersWatch issueWatchersCreate sub-taskConvert to sub-taskMoveLinkCloneLabelsUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    Description

      When generating app report in ApplicationHistoryManagerOnTimelineStore, it checks if appAttempt == null.

              ApplicationAttemptReport appAttempt = getApplicationAttempt(app.appReport.getCurrentApplicationAttemptId());
              if (appAttempt != null) {
                app.appReport.setHost(appAttempt.getHost());
                app.appReport.setRpcPort(appAttempt.getRpcPort());
                app.appReport.setTrackingUrl(appAttempt.getTrackingUrl());
                app.appReport.setOriginalTrackingUrl(appAttempt.getOriginalTrackingUrl());
              }
      

      However, getApplicationAttempt doesn't return null but throws ApplicationAttemptNotFoundException:

          if (entity == null) {
            throw new ApplicationAttemptNotFoundException(
                "The entity for application attempt " + appAttemptId +
                " doesn't exist in the timeline store");
          } else {
            return convertToApplicationAttemptReport(entity);
          }
      

      They code isn't coupled well.

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            zjshen Zhijie Shen Assign to me
            zjshen Zhijie Shen
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment