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

View File

@ -1157,7 +1157,7 @@ public String toString() {
final StringBuilder b = new StringBuilder(getClass().getSimpleName()) final StringBuilder b = new StringBuilder(getClass().getSimpleName())
.append(": ").append(block).append(", type=").append(type); .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) b.append(", downstreams=").append(downstreams.length)
.append(":").append(Arrays.asList(downstreams)); .append(":").append(Arrays.asList(downstreams));
} }