HDFS-10189. PacketResponder#toString should include the downstreams for PacketResponderType.HAS_DOWNSTREAM_IN_PIPELINE (Joe Pallas via cmccabe)
(cherry picked from commita7d8f2b396
) (cherry picked from commita68a9eb2b1
)
This commit is contained in:
parent
1b263ea490
commit
31843df277
|
@ -1146,7 +1146,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));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue