From a68a9eb2b131e426ad16854e83ef81418442e989 Mon Sep 17 00:00:00 2001 From: Colin Patrick Mccabe Date: Tue, 22 Mar 2016 14:56:02 -0700 Subject: [PATCH] HDFS-10189. PacketResponder#toString should include the downstreams for PacketResponderType.HAS_DOWNSTREAM_IN_PIPELINE (Joe Pallas via cmccabe) (cherry picked from commit a7d8f2b3960d27c74abb17ce2aa4bcd999706ad2) --- .../org/apache/hadoop/hdfs/server/datanode/BlockReceiver.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/datanode/BlockReceiver.java b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/datanode/BlockReceiver.java index dfa40319f9b..2e4ee028473 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/datanode/BlockReceiver.java +++ b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/datanode/BlockReceiver.java @@ -1157,7 +1157,7 @@ class BlockReceiver implements Closeable { final StringBuilder b = new StringBuilder(getClass().getSimpleName()) .append(": ").append(block).append(", type=").append(type); - if (type != PacketResponderType.HAS_DOWNSTREAM_IN_PIPELINE) { + if (type == PacketResponderType.HAS_DOWNSTREAM_IN_PIPELINE) { b.append(", downstreams=").append(downstreams.length) .append(":").append(Arrays.asList(downstreams)); }