HDFS-11952. Ozone: Fix TestContainerSQLCli#testConvertContainerDB. Contributed by Weiwei Yang.
This commit is contained in:
parent
23d7d613df
commit
058129bca7
|
@ -81,12 +81,11 @@ public class ContainerMapping implements Mapping {
|
||||||
this.cacheSize = cacheSizeMB;
|
this.cacheSize = cacheSizeMB;
|
||||||
|
|
||||||
File metaDir = OzoneUtils.getScmMetadirPath(conf);
|
File metaDir = OzoneUtils.getScmMetadirPath(conf);
|
||||||
String scmMetaDataDir = metaDir.getParent();
|
|
||||||
Options options = new Options();
|
Options options = new Options();
|
||||||
options.cacheSize(this.cacheSize * OzoneConsts.MB);
|
options.cacheSize(this.cacheSize * OzoneConsts.MB);
|
||||||
|
|
||||||
// Write the container name to pipeline mapping.
|
// Write the container name to pipeline mapping.
|
||||||
File containerDBPath = new File(scmMetaDataDir, CONTAINER_DB);
|
File containerDBPath = new File(metaDir, CONTAINER_DB);
|
||||||
containerStore = new LevelDBStore(containerDBPath, options);
|
containerStore = new LevelDBStore(containerDBPath, options);
|
||||||
|
|
||||||
this.lock = new ReentrantLock();
|
this.lock = new ReentrantLock();
|
||||||
|
|
Loading…
Reference in New Issue