hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From w...@apache.org
Subject hadoop git commit: HDFS-12048. Ozone:TestOzoneContainerRatis & TestRatisManager are failing consistently. Contributed by Mukul Kumar Singh.
Date Mon, 03 Jul 2017 14:11:55 GMT
Repository: hadoop
Updated Branches:
  refs/heads/HDFS-7240 f6a51ad44 -> 737759e3d


HDFS-12048. Ozone:TestOzoneContainerRatis & TestRatisManager are failing consistently.
Contributed by Mukul Kumar Singh.


Project: http://git-wip-us.apache.org/repos/asf/hadoop/repo
Commit: http://git-wip-us.apache.org/repos/asf/hadoop/commit/737759e3
Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/737759e3
Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/737759e3

Branch: refs/heads/HDFS-7240
Commit: 737759e3d57e8220799cd9d60d735c9846f65a3e
Parents: f6a51ad
Author: Weiwei Yang <wwei@apache.org>
Authored: Mon Jul 3 22:11:04 2017 +0800
Committer: Weiwei Yang <wwei@apache.org>
Committed: Mon Jul 3 22:11:04 2017 +0800

----------------------------------------------------------------------
 .../src/test/java/org/apache/hadoop/ozone/MiniOzoneCluster.java | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hadoop/blob/737759e3/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/ozone/MiniOzoneCluster.java
----------------------------------------------------------------------
diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/ozone/MiniOzoneCluster.java
b/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/ozone/MiniOzoneCluster.java
index db9b522..9e3c1e4 100644
--- a/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/ozone/MiniOzoneCluster.java
+++ b/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/ozone/MiniOzoneCluster.java
@@ -113,9 +113,12 @@ public final class MiniOzoneCluster extends MiniDFSCluster
         getInstanceStorageDir(i, -1).getCanonicalPath());
     String containerMetaDirs = dnConf.get(
         OzoneConfigKeys.OZONE_CONTAINER_METADATA_DIRS) + "-dn-" + i;
-    Files.createDirectories(Paths.get(containerMetaDirs));
+    Path containerMetaDirPath = Paths.get(containerMetaDirs);
     setConf(i, dnConf, OzoneConfigKeys.OZONE_CONTAINER_METADATA_DIRS,
         containerMetaDirs);
+    Path containerRootPath =
+        containerMetaDirPath.resolve(OzoneConsts.CONTAINER_ROOT_PREFIX);
+    Files.createDirectories(containerRootPath);
   }
 
   static void setConf(int i, Configuration conf, String key, String value) {


---------------------------------------------------------------------
To unsubscribe, e-mail: common-commits-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-commits-help@hadoop.apache.org


Mime
View raw message