Skip to content

Commit c8ba1a5

Browse files
committed
HDFS-16074. Remove an expensive debug string concatenation
Change-Id: I6c5738753d6aa759e0916d2f052c974c23f618bf
1 parent 9a6a11c commit c8ba1a5

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)