Co-authored-by: Zhtttylz <hualong.z@hotmail.com> Reviewed-by: Ayush Saxena <ayushsaxena@apache.org> Signed-off-by: Shilun Fan <slfan1989@apache.org>
@@ -293,9 +293,7 @@ public class DFSStripedOutputStream extends DFSOutputStream
DataChecksum checksum, String[] favoredNodes)
throws IOException {
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();
final int numParityBlocks = ecPolicy.getNumParityUnits();
@@ -135,16 +135,12 @@ public class HAUtilClient {
HdfsConstants.HDFS_URI_SCHEME)
+ "//" + specificToken.getService());
ugi.addToken(alias, specificToken);
- LOG.debug("Mapped HA service delegation token for logical URI " +
- haUri + " to namenode " + singleNNAddr);
+ LOG.debug("Mapped HA service delegation token for logical URI {}" +
+ " to namenode {}", haUri, singleNNAddr);
}
} else {
- LOG.debug("No HA service delegation token found for logical URI " +
- haUri);
+ LOG.debug("No HA service delegation token found for logical URI {}",
+ haUri);
@@ -342,7 +342,7 @@ public class TestByteArrayManager {
if ((i & 0xFF) == 0) {
- LOG.info("randomRecycler sleep, i=" + i);
+ LOG.info("randomRecycler sleep, i={}", i);
sleepMs(100);