You are viewing a plain text version of this content. The canonical link for it is here.
Posted to yarn-issues@hadoop.apache.org by "Rohith Sharma K S (JIRA)" <ji...@apache.org> on 2018/06/05 10:25:00 UTC

[jira] [Commented] (YARN-8397) ActivitiesManager thread doesn't handles InterruptedException

    [ https://issues.apache.org/jira/browse/YARN-8397?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16501568#comment-16501568 ] 

Rohith Sharma K S commented on YARN-8397:
-----------------------------------------

This is due to ActivitiesManager#serviceStop interrupt the thread and come out. But exception handling in run method ignores exception and continue in loop.
{code}
    cleanUpThread = new Thread(new Runnable() {
      @Override
      public void run() {
        while (true) {
          // some code
          try {
            Thread.sleep(5000);
          } catch (Exception e) {
            // ignore
          }
        }
      }
    });
{code}

> ActivitiesManager thread doesn't handles InterruptedException 
> --------------------------------------------------------------
>
>                 Key: YARN-8397
>                 URL: https://issues.apache.org/jira/browse/YARN-8397
>             Project: Hadoop YARN
>          Issue Type: Bug
>            Reporter: Rohith Sharma K S
>            Priority: Major
>
> It is observed while using MiniYARNCluster, MiniYARNCluster#stop doesn't stop JVM. 
> Thread dump shows that ActivitiesManager is in timed_waiting state. 
> {code}
> "Thread-43" #66 prio=5 os_prio=31 tid=0x00007ffea09fd000 nid=0xa103 waiting on condition [0x0000700006f10000]
>    java.lang.Thread.State: TIMED_WAITING (sleeping)
> 	at java.lang.Thread.sleep(Native Method)
> 	at org.apache.hadoop.yarn.server.resourcemanager.scheduler.activities.ActivitiesManager$1.run(ActivitiesManager.java:142)
> 	at java.lang.Thread.run(Thread.java:748)
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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