|
@@ -38,8 +38,8 @@ import java.util.concurrent.Future;
|
|
import java.util.concurrent.TimeUnit;
|
|
import java.util.concurrent.TimeUnit;
|
|
import java.util.concurrent.TimeoutException;
|
|
import java.util.concurrent.TimeoutException;
|
|
|
|
|
|
-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.conf.Configuration;
|
|
import org.apache.hadoop.fs.FSDataOutputStream;
|
|
import org.apache.hadoop.fs.FSDataOutputStream;
|
|
import org.apache.hadoop.fs.Path;
|
|
import org.apache.hadoop.fs.Path;
|
|
@@ -87,7 +87,7 @@ import org.mockito.invocation.InvocationOnMock;
|
|
* and messages.
|
|
* and messages.
|
|
*/
|
|
*/
|
|
public abstract class BlockReportTestBase {
|
|
public abstract class BlockReportTestBase {
|
|
- public static final Log LOG = LogFactory.getLog(BlockReportTestBase.class);
|
|
|
|
|
|
+ public static final Logger LOG = LoggerFactory.getLogger(BlockReportTestBase.class);
|
|
|
|
|
|
private static short REPL_FACTOR = 1;
|
|
private static short REPL_FACTOR = 1;
|
|
private static final int RAND_LIMIT = 2000;
|
|
private static final int RAND_LIMIT = 2000;
|
|
@@ -879,7 +879,7 @@ public abstract class BlockReportTestBase {
|
|
private static void initLoggers() {
|
|
private static void initLoggers() {
|
|
DFSTestUtil.setNameNodeLogLevel(Level.ALL);
|
|
DFSTestUtil.setNameNodeLogLevel(Level.ALL);
|
|
GenericTestUtils.setLogLevel(DataNode.LOG, Level.ALL);
|
|
GenericTestUtils.setLogLevel(DataNode.LOG, Level.ALL);
|
|
- GenericTestUtils.setLogLevel(BlockReportTestBase.LOG, Level.ALL);
|
|
|
|
|
|
+ GenericTestUtils.setLogLevel(BlockReportTestBase.LOG, org.slf4j.event.Level.DEBUG);
|
|
}
|
|
}
|
|
|
|
|
|
private Block findBlock(Path path, long size) throws IOException {
|
|
private Block findBlock(Path path, long size) throws IOException {
|