From c1f8323234e4635d5e710007ae8dc847a29a40f5 Mon Sep 17 00:00:00 2001 From: Haohui Mai Date: Mon, 8 Sep 2014 11:07:23 -0700 Subject: [PATCH] HDFS-6943. Improve NN allocateBlock log to include replicas' datanode IPs. Contributed by Ming Ma. --- hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt | 3 +++ .../hdfs/server/blockmanagement/DatanodeStorageInfo.java | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt b/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt index 5a30d0a70d..1329442605 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt +++ b/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-6943. Improve NN allocateBlock log to include replicas' datanode IPs. + (Ming Ma via wheat9) + OPTIMIZATIONS HDFS-6690. Deduplicate xattr names in memory. (wang) diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/blockmanagement/DatanodeStorageInfo.java b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/blockmanagement/DatanodeStorageInfo.java index 9e442c7e1f..4ddb7cc146 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/blockmanagement/DatanodeStorageInfo.java +++ b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/blockmanagement/DatanodeStorageInfo.java @@ -305,7 +305,7 @@ public int hashCode() { @Override public String toString() { - return "[" + storageType + "]" + storageID + ":" + state; + return "[" + storageType + "]" + storageID + ":" + state + ":" + dn; } StorageReport toStorageReport() {