Xiaoyu Yao created HDFS-8423:
--------------------------------

             Summary: Add additional trace to DataNode#shutdown to track 
progress
                 Key: HDFS-8423
                 URL: https://issues.apache.org/jira/browse/HDFS-8423
             Project: Hadoop HDFS
          Issue Type: Sub-task
    Affects Versions: 2.6.0
            Reporter: Xiaoyu Yao
            Assignee: Xiaoyu Yao


We have seen Datanode#shutdown wait infinitely during rolling upgrade but there 
is no progress information logged in datanode log. 

This ticket propose to add additional tracing after completion of sub tasks 
such  as:

{code}

    // Terminate directory scanner and block scanner
    shutdownPeriodicScanners();
   
   // TODO: log completion

    // wait reconfiguration thread, if any, to exit
    shutdownReconfigurationTask();

  // TODO: log completion

    if (this.dataXceiverServer != null) {
      // wait for dataXceiverServer to terminate
      try {
        this.dataXceiverServer.join();
      } catch (InterruptedException ie) {
      }
    }
   
    // TODO: log completion 
    
    if (this.localDataXceiverServer != null) {
      // wait for localDataXceiverServer to terminate
      try {
        this.localDataXceiverServer.join();
      } catch (InterruptedException ie) {
      }
    }
    
    // TODO: log completion

    ...

{code}



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

Reply via email to