HDFS-10189. PacketResponder#toString should include the downstreams for PacketResponderType.HAS_DOWNSTREAM_IN_PIPELINE (Joe Pallas via cmccabe)

This commit is contained in:
Colin Patrick Mccabe 2016-03-22 14:56:02 -07:00
parent 57ead18a85
commit a7d8f2b396
1 changed files with 1 additions and 1 deletions

View File

@ -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));
}