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:
Wei-Chiu Chuang 2021-06-16 20:37:56 -07:00 committed by GitHub
parent 56d249759f
commit 1ad674e548
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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