HDFS-6014. Fix findbug warnings introduced by HDFS-5583. Contributed by Kihwal Lee.

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/branches/HDFS-5535@1571784 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Kihwal Lee 2014-02-25 18:48:30 +00:00
parent 2c8a6f5712
commit f52fe68a2b
3 changed files with 5 additions and 0 deletions

View File

@ -88,3 +88,5 @@ HDFS-5535 subtasks:
HDFS-6003. Add the new -rollingUpgrade startup option to the namenode
usage message. (Vinayakumar B via szetszwo)
HDFS-6014. Fix findbug warnings introduced by HDFS-5583. (kihwal)

View File

@ -1023,6 +1023,7 @@ class BlockReceiver implements Closeable {
}
synchronized(this) {
running = false;
notifyAll();
}
}

View File

@ -1305,6 +1305,8 @@ public class DataNode extends Configured
}
LOG.info("Shutdown complete.");
synchronized(this) {
// it is already false, but setting it again to avoid a findbug warning.
this.shouldRun = false;
// Notify the main thread.
notifyAll();
}