You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-commits@hadoop.apache.org by in...@apache.org on 2018/01/09 01:51:14 UTC
hadoop git commit: HDFS-12808. Add LOG.isDebugEnabled() guard for
LOG.debug(...). Contributed by Bharat Viswanadham.
Repository: hadoop
Updated Branches:
refs/heads/trunk 59ab5da0a -> b3290c41a
HDFS-12808. Add LOG.isDebugEnabled() guard for LOG.debug(...). Contributed by Bharat Viswanadham.
Project: http://git-wip-us.apache.org/repos/asf/hadoop/repo
Commit: http://git-wip-us.apache.org/repos/asf/hadoop/commit/b3290c41
Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/b3290c41
Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/b3290c41
Branch: refs/heads/trunk
Commit: b3290c41a9b347ba3c5553250baa7566a9a969bb
Parents: 59ab5da
Author: Inigo Goiri <in...@apache.org>
Authored: Mon Jan 8 17:51:09 2018 -0800
Committer: Inigo Goiri <in...@apache.org>
Committed: Mon Jan 8 17:51:09 2018 -0800
----------------------------------------------------------------------
.../hadoop/hdfs/server/datanode/TestCachingStrategy.java | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/hadoop/blob/b3290c41/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/datanode/TestCachingStrategy.java
----------------------------------------------------------------------
diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/datanode/TestCachingStrategy.java b/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/datanode/TestCachingStrategy.java
index 85fffb9..459ef88 100644
--- a/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/datanode/TestCachingStrategy.java
+++ b/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/datanode/TestCachingStrategy.java
@@ -23,8 +23,8 @@ import java.util.Arrays;
import java.util.Map;
import java.util.TreeMap;
-import org.apache.commons.logging.Log;
-import org.apache.commons.logging.LogFactory;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.fs.FSDataInputStream;
import org.apache.hadoop.fs.FSDataOutputStream;
@@ -48,7 +48,8 @@ import org.junit.BeforeClass;
import org.junit.Test;
public class TestCachingStrategy {
- private static final Log LOG = LogFactory.getLog(TestCachingStrategy.class);
+ private static final Logger LOG =
+ LoggerFactory.getLogger(TestCachingStrategy.class);
private static final int MAX_TEST_FILE_LEN = 1024 * 1024;
private static final int WRITE_PACKET_SIZE = HdfsClientConfigKeys.DFS_CLIENT_WRITE_PACKET_SIZE_DEFAULT;
@@ -80,8 +81,7 @@ public class TestCachingStrategy {
}
synchronized void fadvise(int offset, int len, int flags) {
- LOG.debug("got fadvise(offset=" + offset + ", len=" + len +
- ",flags=" + flags + ")");
+ LOG.debug("got fadvise(offset={}, len={}, flags={})", offset, len, flags);
if (flags == POSIX_FADV_DONTNEED) {
for (int i = 0; i < len; i++) {
dropped[(offset + i)] = true;
---------------------------------------------------------------------
To unsubscribe, e-mail: common-commits-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-commits-help@hadoop.apache.org