From 7fb91b8a534eaeda55c2de120a7d23f9c90d265b Mon Sep 17 00:00:00 2001 From: Bharat Viswanadham Date: Thu, 4 Oct 2018 21:26:58 -0700 Subject: [PATCH] HDDS-565. TestContainerPersistence fails regularly in Jenkins. Contributed by Dinesh Chitlangia. --- .../ozone/container/common/impl/TestContainerPersistence.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/hadoop-ozone/integration-test/src/test/java/org/apache/hadoop/ozone/container/common/impl/TestContainerPersistence.java b/hadoop-ozone/integration-test/src/test/java/org/apache/hadoop/ozone/container/common/impl/TestContainerPersistence.java index b6cdc9d0644..d9e0d297f88 100644 --- a/hadoop-ozone/integration-test/src/test/java/org/apache/hadoop/ozone/container/common/impl/TestContainerPersistence.java +++ b/hadoop-ozone/integration-test/src/test/java/org/apache/hadoop/ozone/container/common/impl/TestContainerPersistence.java @@ -74,7 +74,6 @@ import java.util.Map; import java.util.UUID; import static org.apache.hadoop.hdds.protocol.datanode.proto.ContainerProtos.Stage.COMBINED; -import static org.apache.hadoop.hdfs.DFSConfigKeys.DFS_DATANODE_DATA_DIR_KEY; import static org.apache.hadoop.ozone.container.ContainerTestHelper.getChunk; import static org.apache.hadoop.ozone.container.ContainerTestHelper.getData; import static org.apache.hadoop.ozone.container.ContainerTestHelper.setDataChecksum; @@ -129,7 +128,7 @@ public class TestContainerPersistence { blockManager = new BlockManagerImpl(conf); chunkManager = new ChunkManagerImpl(); - for (String dir : conf.getStrings(DFS_DATANODE_DATA_DIR_KEY)) { + for (String dir : conf.getStrings(ScmConfigKeys.HDDS_DATANODE_DIR_KEY)) { StorageLocation location = StorageLocation.parse(dir); FileUtils.forceMkdir(new File(location.getNormalizedUri())); }