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

Client in distributedShell swallows interrupt exceptions

    XMLWordPrintableJSON

    Details

    • Hadoop Flags:
      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

              People

              • Assignee:
                ahussein Ahmed Hussein
                Reporter:
                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