Browse Source

HDFS-6943. Improve NN allocateBlock log to include replicas' datanode IPs. Contributed by Ming Ma.

Haohui Mai 10 years ago
parent
commit
c1f8323234

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

@@ -446,6 +446,9 @@ Release 2.6.0 - UNRELEASED
 
 
     HDFS-6940. Refactoring to allow ConsensusNode implementation. (shv)
     HDFS-6940. Refactoring to allow ConsensusNode implementation. (shv)
 
 
+    HDFS-6943. Improve NN allocateBlock log to include replicas' datanode IPs.
+    (Ming Ma via wheat9)
+
   OPTIMIZATIONS
   OPTIMIZATIONS
 
 
     HDFS-6690. Deduplicate xattr names in memory. (wang)
     HDFS-6690. Deduplicate xattr names in memory. (wang)

+ 1 - 1
hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/blockmanagement/DatanodeStorageInfo.java

@@ -305,7 +305,7 @@ public class DatanodeStorageInfo {
 
 
   @Override
   @Override
   public String toString() {
   public String toString() {
-    return "[" + storageType + "]" + storageID + ":" + state;
+    return "[" + storageType + "]" + storageID + ":" + state + ":" + dn;
   }
   }
   
   
   StorageReport toStorageReport() {
   StorageReport toStorageReport() {