HDFS-6836: Merging r1617603 from trunk to branch-2.
git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/branches/branch-2@1617604 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
004068c391
commit
f1f1ff8f82
|
@ -135,6 +135,9 @@ Release 2.6.0 - UNRELEASED
|
|||
HDFS-6838. Code cleanup for unnecessary INode replacement.
|
||||
(Jing Zhao via wheat9)
|
||||
|
||||
HDFS-6836. HDFS INFO logging is verbose & uses file appenders. (Xiaoyu
|
||||
Yao via Arpit Agarwal)
|
||||
|
||||
OPTIMIZATIONS
|
||||
|
||||
HDFS-6690. Deduplicate xattr names in memory. (wang)
|
||||
|
|
|
@ -687,7 +687,7 @@ class BlockSender implements java.io.Closeable {
|
|||
// Trigger readahead of beginning of file if configured.
|
||||
manageOsCache();
|
||||
|
||||
final long startTime = ClientTraceLog.isInfoEnabled() ? System.nanoTime() : 0;
|
||||
final long startTime = ClientTraceLog.isDebugEnabled() ? System.nanoTime() : 0;
|
||||
try {
|
||||
int maxChunksPerPacket;
|
||||
int pktBufSize = PacketHeader.PKT_MAX_HEADER_LEN;
|
||||
|
@ -733,9 +733,9 @@ class BlockSender implements java.io.Closeable {
|
|||
sentEntireByteRange = true;
|
||||
}
|
||||
} finally {
|
||||
if (clientTraceFmt != null) {
|
||||
if ((clientTraceFmt != null) && ClientTraceLog.isDebugEnabled()) {
|
||||
final long endTime = System.nanoTime();
|
||||
ClientTraceLog.info(String.format(clientTraceFmt, totalRead,
|
||||
ClientTraceLog.debug(String.format(clientTraceFmt, totalRead,
|
||||
initialOffset, endTime - startTime));
|
||||
}
|
||||
close();
|
||||
|
|
Loading…
Reference in New Issue