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

Kihwal Lee commented on HDFS-7932:
----------------------------------

Here is an example of slow shutdown.  Instead of waiting for the thread group 
to clear, it can continue with the rest of the process after interrupting it.

{noformat}
2015-03-10 06:16:39,829 [Thread-2647495] INFO mortbay.log: Stopped 
HttpServer2$SelectChannelConnectorWithSafeStartup@localhost:0
2015-03-10 06:16:39,937 [Thread-2647495] INFO datanode.DataNode: Waiting for 
threadgroup to exit, active threads is 1
2015-03-10 06:16:39,939 [Thread-2647495] INFO datanode.DataNode: Waiting for 
threadgroup to exit, active threads is 1
2015-03-10 06:16:39,942 [Thread-2647495] INFO datanode.DataNode: Waiting for 
threadgroup to exit, active threads is 1
...
2015-03-10 06:16:44,076 [Thread-2647495] INFO datanode.DataNode: Waiting for 
threadgroup to exit, active threads is 1
2015-03-10 06:16:44,580 [main] WARN datanode.DataNode: Exiting Datanode
2015-03-10 06:16:44,772 [main] INFO util.ExitUtil: Exiting with status 0
2015-03-10 06:16:44,775 [Thread-2] INFO datanode.DataNode: SHUTDOWN_MSG: 
/************************************************************
SHUTDOWN_MSG: Shutting down DataNode at xxx
************************************************************/
2015-03-10 06:16:45,077 [Thread-2647495] INFO datanode.DataNode: Waiting for 
threadgroup to exit, active threads is 1
2015-03-10 06:16:46,078 [Thread-2647495] INFO datanode.DataNode: Waiting for 
threadgroup to exit, active threads is 1
{noformat}

> Speed up the shutdown of datanode during rolling upgrade
> --------------------------------------------------------
>
>                 Key: HDFS-7932
>                 URL: https://issues.apache.org/jira/browse/HDFS-7932
>             Project: Hadoop HDFS
>          Issue Type: Bug
>            Reporter: Kihwal Lee
>
> Datanode normally exits in 3 seconds after receiving {{shutdownDatanode}} 
> command. However, sometimes it doesn't, especially when the IO is busy. 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to