فهرست منبع

HDFS-4656. DN heartbeat loop can be briefly tight. Contributed by Aaron T. Myers.

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1463357 13f79535-47bb-0310-9956-ffa450edef68
Aaron Myers 12 سال پیش
والد
کامیت
ef9e1ba763

+ 2 - 0
hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt

@@ -463,6 +463,8 @@ Release 2.0.5-beta - UNRELEASED
     HDFS-4655. DNA_FINALIZE is logged as being an unknown command by the DN
     when received from the standby NN. (atm)
 
+    HDFS-4656. DN heartbeat loop can be briefly tight. (atm)
+
 Release 2.0.4-alpha - UNRELEASED
 
   INCOMPATIBLE CHANGES

+ 1 - 1
hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/datanode/BPServiceActor.java

@@ -512,7 +512,7 @@ class BPServiceActor implements Runnable {
         //
         // Every so often, send heartbeat or block-report
         //
-        if (startTime - lastHeartbeat > dnConf.heartBeatInterval) {
+        if (startTime - lastHeartbeat >= dnConf.heartBeatInterval) {
           //
           // All heartbeat messages include following info:
           // -- Datanode name