Skip to content

Commit 1ad674e

Browse files
authored
HDFS-16074. Remove an expensive debug string concatenation (apache#3107)
Reviewed-by: Ayush Saxena <[email protected]> Reviewed-by: Akira Ajisaka <[email protected]> Reviewed-by: Inigo Goiri <[email protected]> Reviewed-by: Hui Fei <[email protected]> Reviewed-by: Viraj Jasani <[email protected]> Reviewed-by: litao <[email protected]>
1 parent 56d2497 commit 1ad674e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

hadoop-hdfs-project/hadoop-hdfs-client/src/main/java/org/apache/hadoop/hdfs/DFSOutputStream.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -483,9 +483,10 @@ private synchronized void writeChunkPrepare(int buflen,
483483
currentPacket = createPacket(packetSize, chunksPerPacket, getStreamer()
484484
.getBytesCurBlock(), getStreamer().getAndIncCurrentSeqno(), false);
485485
DFSClient.LOG.debug("WriteChunk allocating new packet seqno={},"
486-
+ " src={}, packetSize={}, chunksPerPacket={}, bytesCurBlock={}",
486+
+ " src={}, packetSize={}, chunksPerPacket={}, bytesCurBlock={},"
487+
+ " output stream={}",
487488
currentPacket.getSeqno(), src, packetSize, chunksPerPacket,
488-
getStreamer().getBytesCurBlock() + ", " + this);
489+
getStreamer().getBytesCurBlock(), this);
489490
}
490491
}
491492

0 commit comments

Comments
 (0)