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

Client in distributedShell swallows interrupt exceptions

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

    • Reviewed

    Description

      In applications.distributedshell.Client , the method monitorApplication loops waiting for the following conditions:

      • Application fails: reaches YarnApplicationState.KILLED, or YarnApplicationState.FAILED
      • Application succeeds: FinalApplicationStatus.SUCCEEDED or YarnApplicationState.FINISHED
      • the time spent waiting is longer than clientTimeout (if it exists in the parameters).

      When the Client thread is interrupted, it ignores the exception:

            // Check app status every 1 second.
            try {
              Thread.sleep(1000);
            } catch (InterruptedException e) {
              LOG.debug("Thread sleep in monitoring loop interrupted");
            }
      

      Attachments

        Issue Links

        Activity

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

          People

            ahussein Ahmed Hussein Assign to me
            ahussein Ahmed Hussein
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

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

              Slack

                Issue deployment