HDFS-16893. Standardize the usage of DFSClient debug log (#5303)
Co-authored-by: Zhtttylz <hualong.z@hotmail.com> Reviewed-by: Ayush Saxena <ayushsaxena@apache.org> Signed-off-by: Shilun Fan <slfan1989@apache.org>
This commit is contained in:
parent
04f3573f6a
commit
72b760130a
@ -293,9 +293,7 @@ private void flipDataBuffers() {
|
|||||||
DataChecksum checksum, String[] favoredNodes)
|
DataChecksum checksum, String[] favoredNodes)
|
||||||
throws IOException {
|
throws IOException {
|
||||||
super(dfsClient, src, stat, flag, progress, checksum, favoredNodes, false);
|
super(dfsClient, src, stat, flag, progress, checksum, favoredNodes, false);
|
||||||
if (LOG.isDebugEnabled()) {
|
LOG.debug("Creating DFSStripedOutputStream for {}", src);
|
||||||
LOG.debug("Creating DFSStripedOutputStream for " + src);
|
|
||||||
}
|
|
||||||
|
|
||||||
ecPolicy = stat.getErasureCodingPolicy();
|
ecPolicy = stat.getErasureCodingPolicy();
|
||||||
final int numParityBlocks = ecPolicy.getNumParityUnits();
|
final int numParityBlocks = ecPolicy.getNumParityUnits();
|
||||||
|
@ -135,16 +135,12 @@ public static void cloneDelegationTokenForLogicalUri(
|
|||||||
HdfsConstants.HDFS_URI_SCHEME)
|
HdfsConstants.HDFS_URI_SCHEME)
|
||||||
+ "//" + specificToken.getService());
|
+ "//" + specificToken.getService());
|
||||||
ugi.addToken(alias, specificToken);
|
ugi.addToken(alias, specificToken);
|
||||||
if (LOG.isDebugEnabled()) {
|
LOG.debug("Mapped HA service delegation token for logical URI {}" +
|
||||||
LOG.debug("Mapped HA service delegation token for logical URI " +
|
" to namenode {}", haUri, singleNNAddr);
|
||||||
haUri + " to namenode " + singleNNAddr);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (LOG.isDebugEnabled()) {
|
LOG.debug("No HA service delegation token found for logical URI {}",
|
||||||
LOG.debug("No HA service delegation token found for logical URI " +
|
haUri);
|
||||||
haUri);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -342,7 +342,7 @@ public void run() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ((i & 0xFF) == 0) {
|
if ((i & 0xFF) == 0) {
|
||||||
LOG.info("randomRecycler sleep, i=" + i);
|
LOG.info("randomRecycler sleep, i={}", i);
|
||||||
sleepMs(100);
|
sleepMs(100);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user