HDFS-16074. Remove an expensive debug string concatenation (#3107)
Reviewed-by: Ayush Saxena <ayushsaxena@apache.org> Reviewed-by: Akira Ajisaka <aajisaka@apache.org> Reviewed-by: Inigo Goiri <inigoiri@apache.org> Reviewed-by: Hui Fei <ferhui@apache.org> Reviewed-by: Viraj Jasani <vjasani@apache.org> Reviewed-by: litao <tomleescut@gmail.com>
This commit is contained in:
parent
56d249759f
commit
1ad674e548
@ -483,9 +483,10 @@ private synchronized void writeChunkPrepare(int buflen,
|
|||||||
currentPacket = createPacket(packetSize, chunksPerPacket, getStreamer()
|
currentPacket = createPacket(packetSize, chunksPerPacket, getStreamer()
|
||||||
.getBytesCurBlock(), getStreamer().getAndIncCurrentSeqno(), false);
|
.getBytesCurBlock(), getStreamer().getAndIncCurrentSeqno(), false);
|
||||||
DFSClient.LOG.debug("WriteChunk allocating new packet seqno={},"
|
DFSClient.LOG.debug("WriteChunk allocating new packet seqno={},"
|
||||||
+ " src={}, packetSize={}, chunksPerPacket={}, bytesCurBlock={}",
|
+ " src={}, packetSize={}, chunksPerPacket={}, bytesCurBlock={},"
|
||||||
|
+ " output stream={}",
|
||||||
currentPacket.getSeqno(), src, packetSize, chunksPerPacket,
|
currentPacket.getSeqno(), src, packetSize, chunksPerPacket,
|
||||||
getStreamer().getBytesCurBlock() + ", " + this);
|
getStreamer().getBytesCurBlock(), this);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user