Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-17209

Correct comments to align with the code

    XMLWordPrintableJSON

Details

    • Reviewed

    Description

      The waiting time in the comments is inconsistent with the code in DataNode.java

      public void shutdown() {
      ...
        while (true) {
          // When shutting down for restart, wait 2.5 seconds before forcing
          // termination of receiver threads.
          if (!this.shutdownForUpgrade ||
              (this.shutdownForUpgrade && (Time.monotonicNow() - timeNotified
                  > 1000))) {
            this.threadGroup.interrupt();
            break;
          }

      Attachments

        Issue Links

          Activity

            People

              yu.wang Yu Wang
              yu.wang Yu Wang
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: