Hadoop HDFS
  1. Hadoop HDFS
  2. HDFS-3718

Datanode won't shutdown because of runaway DataBlockScanner thread

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Critical Critical
    • Resolution: Fixed
    • Affects Version/s: 2.0.1-alpha
    • Fix Version/s: 0.23.3, 2.0.2-alpha
    • Component/s: datanode
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      Datanode sometimes does not shutdown because the block pool scanner thread keeps running. It prints out "Starting a new period" every five seconds, even after shutdown() is called. Somehow the interrupt is missed.

      DataBlockScanner will also terminate if datanode.shouldRun is false, but in DataNode#shutdown, DataBlockScanner#shutdown() is invoked before it is being set to false.

      Is there any reason why datanode.shouldRun is set to false later?

        Activity

          People

          • Assignee:
            Kihwal Lee
            Reporter:
            Kihwal Lee
          • Votes:
            0 Vote for this issue
            Watchers:
            11 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development