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:
parent
2f29784293
commit
11034f2488
|
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue