This is an automated email from the ASF dual-hosted git repository.
bharat pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/hadoop-ozone.git
The following commit(s) were added to refs/heads/master by this push:
new c47aaa1 HDDS-2398. Remove usage of LogUtils class from ratis-common.
(#113)
c47aaa1 is described below
commit c47aaa128fc28a55c6996d53cd641928641dcabe
Author: Bharat Viswanadham <[email protected]>
AuthorDate: Sat Nov 2 09:38:46 2019 -0700
HDDS-2398. Remove usage of LogUtils class from ratis-common. (#113)
---
.../test/java/org/apache/hadoop/ozone/MiniOzoneChaosCluster.java | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git
a/hadoop-ozone/integration-test/src/test/java/org/apache/hadoop/ozone/MiniOzoneChaosCluster.java
b/hadoop-ozone/integration-test/src/test/java/org/apache/hadoop/ozone/MiniOzoneChaosCluster.java
index 2eef206..d816b1d 100644
---
a/hadoop-ozone/integration-test/src/test/java/org/apache/hadoop/ozone/MiniOzoneChaosCluster.java
+++
b/hadoop-ozone/integration-test/src/test/java/org/apache/hadoop/ozone/MiniOzoneChaosCluster.java
@@ -28,9 +28,8 @@ import
org.apache.hadoop.hdds.scm.server.StorageContainerManager;
import org.apache.hadoop.metrics2.lib.DefaultMetricsSystem;
import org.apache.hadoop.ozone.om.OzoneManager;
import
org.apache.hadoop.security.authentication.client.AuthenticationException;
-import org.apache.log4j.Level;
+import org.apache.hadoop.test.GenericTestUtils;
import org.apache.ratis.grpc.client.GrpcClientProtocolClient;
-import org.apache.ratis.util.LogUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
@@ -69,7 +68,8 @@ public class MiniOzoneChaosCluster extends
MiniOzoneClusterImpl {
this.executorService = Executors.newSingleThreadScheduledExecutor();
this.numDatanodes = getHddsDatanodes().size();
LOG.info("Starting MiniOzoneChaosCluster with {} datanodes", numDatanodes);
- LogUtils.setLogLevel(GrpcClientProtocolClient.LOG, Level.WARN);
+ GenericTestUtils.setLogLevel(GrpcClientProtocolClient.LOG,
+ org.slf4j.event.Level.WARN);
}
// Get the number of datanodes to fail in the cluster.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]