HDFS-12048. Ozone:TestOzoneContainerRatis & TestRatisManager are failing consistently. Contributed by Mukul Kumar Singh.
This commit is contained in:
parent
d1ac8611c6
commit
e07662cb04
|
@ -113,9 +113,12 @@ public final class MiniOzoneCluster extends MiniDFSCluster
|
||||||
getInstanceStorageDir(i, -1).getCanonicalPath());
|
getInstanceStorageDir(i, -1).getCanonicalPath());
|
||||||
String containerMetaDirs = dnConf.get(
|
String containerMetaDirs = dnConf.get(
|
||||||
OzoneConfigKeys.OZONE_CONTAINER_METADATA_DIRS) + "-dn-" + i;
|
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,
|
setConf(i, dnConf, OzoneConfigKeys.OZONE_CONTAINER_METADATA_DIRS,
|
||||||
containerMetaDirs);
|
containerMetaDirs);
|
||||||
|
Path containerRootPath =
|
||||||
|
containerMetaDirPath.resolve(OzoneConsts.CONTAINER_ROOT_PREFIX);
|
||||||
|
Files.createDirectories(containerRootPath);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void setConf(int i, Configuration conf, String key, String value) {
|
static void setConf(int i, Configuration conf, String key, String value) {
|
||||||
|
|
Loading…
Reference in New Issue