Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-6185 HDFS operational and debuggability improvements
  3. HDFS-8423

Add additional trace to DataNode#shutdown to track progress

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 2.6.0
    • None
    • None
    • None

    Description

      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:

          // 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
      
          ...
      
      

      Attachments

        Activity

          People

            xyao Xiaoyu Yao
            xyao Xiaoyu Yao
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: