HDFS-3718. Datanode won't shutdown because of runaway DataBlockScanner thread (Kihwal Lee via daryn)

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1373090 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Daryn Sharp 2012-08-14 20:56:49 +00:00
parent b38bd555e8
commit f46b6ea55c
2 changed files with 4 additions and 1 deletions

View File

@ -1472,6 +1472,9 @@ Release 0.23.3 - UNRELEASED
HDFS-3553. Hftp proxy tokens are broken (daryn)
HDFS-3718. Datanode won't shutdown because of runaway DataBlockScanner
thread (Kihwal Lee via daryn)
Release 0.23.2 - UNRELEASED
INCOMPATIBLE CHANGES

View File

@ -1061,6 +1061,7 @@ public class DataNode extends Configured
}
}
this.shouldRun = false;
shutdownPeriodicScanners();
if (infoServer != null) {
@ -1074,7 +1075,6 @@ public class DataNode extends Configured
ipcServer.stop();
}
this.shouldRun = false;
if (dataXceiverServer != null) {
((DataXceiverServer) this.dataXceiverServer.getRunnable()).kill();
this.dataXceiverServer.interrupt();