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>
(cherry picked from commit 1ad674e548)
This commit is contained in:
Wei-Chiu Chuang 2021-06-16 20:37:56 -07:00
parent 2f29784293
commit 11034f2488
No known key found for this signature in database
GPG Key ID: B362E1C021854B9D
1 changed files with 3 additions and 2 deletions

View File

@ -473,9 +473,10 @@ public class DFSOutputStream extends FSOutputSummer
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);
} }
} }