You are viewing a plain text version of this content. The canonical link for it is here.
Posted to yarn-dev@hadoop.apache.org by "Ahmed Hussein (Jira)" <ji...@apache.org> on 2020/12/16 17:42:00 UTC

[jira] [Created] (YARN-10536) Client in distributedShell swallows interrupt exceptions

Ahmed Hussein created YARN-10536:
------------------------------------

             Summary: Client in distributedShell swallows interrupt exceptions
                 Key: YARN-10536
                 URL: https://issues.apache.org/jira/browse/YARN-10536
             Project: Hadoop YARN
          Issue Type: Bug
          Components: client, distributed-shell
            Reporter: Ahmed Hussein
            Assignee: Ahmed Hussein


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:

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




--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: yarn-dev-unsubscribe@hadoop.apache.org
For additional commands, e-mail: yarn-dev-help@hadoop.apache.org