HDFS-11952. Ozone: Fix TestContainerSQLCli#testConvertContainerDB. Contributed by Weiwei Yang.

This commit is contained in:
Xiaoyu Yao 2017-06-08 10:07:16 -07:00 committed by Owen O'Malley
parent 0c37e05b10
commit ddc88eaf88

View File

@ -81,12 +81,11 @@ public ContainerMapping(final Configuration conf,
this.cacheSize = cacheSizeMB;
File metaDir = OzoneUtils.getScmMetadirPath(conf);
String scmMetaDataDir = metaDir.getParent();
Options options = new Options();
options.cacheSize(this.cacheSize * OzoneConsts.MB);
// 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);
this.lock = new ReentrantLock();