From 3a868fe8c40a6d648b56763d428bc6acb137f556 Mon Sep 17 00:00:00 2001 From: Anu Engineer Date: Thu, 15 Jun 2017 10:33:09 -0700 Subject: [PATCH] HDFS-11979. Ozone: TestContainerPersistence never uses MiniOzoneCluster. Contributed by Tsz Wo Nicholas Sze. --- .../container/common/impl/TestContainerPersistence.java | 7 ------- 1 file changed, 7 deletions(-) diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/ozone/container/common/impl/TestContainerPersistence.java b/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/ozone/container/common/impl/TestContainerPersistence.java index 153d8e438dc..76b3ca4fb5c 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/ozone/container/common/impl/TestContainerPersistence.java +++ b/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/ozone/container/common/impl/TestContainerPersistence.java @@ -21,7 +21,6 @@ import org.apache.commons.codec.binary.Hex; import org.apache.commons.io.FileUtils; import org.apache.hadoop.hdfs.ozone.protocol.proto.ContainerProtos; import org.apache.hadoop.hdfs.server.datanode.StorageLocation; -import org.apache.hadoop.ozone.MiniOzoneCluster; import org.apache.hadoop.ozone.OzoneConfigKeys; import org.apache.hadoop.ozone.OzoneConfiguration; import org.apache.hadoop.ozone.OzoneConsts; @@ -86,7 +85,6 @@ public class TestContainerPersistence { private static ChunkManagerImpl chunkManager; private static KeyManagerImpl keyManager; private static OzoneConfiguration conf; - private static MiniOzoneCluster cluster; private static List pathLists = new LinkedList<>(); @BeforeClass @@ -104,8 +102,6 @@ public class TestContainerPersistence { } Assert.assertTrue(containerDir.mkdirs()); - cluster = new MiniOzoneCluster.Builder(conf) - .setHandlerType(OzoneConsts.OZONE_HANDLER_DISTRIBUTED).build(); containerManager = new ContainerManagerImpl(); chunkManager = new ChunkManagerImpl(containerManager); containerManager.setChunkManager(chunkManager); @@ -116,9 +112,6 @@ public class TestContainerPersistence { @AfterClass public static void shutdown() throws IOException { - if(cluster != null) { - cluster.shutdown(); - } FileUtils.deleteDirectory(new File(path)); }