HDDS-1652. HddsDispatcher should not shutdown volumeSet. Contributed by Xiaoyu Yao. (#916)

This commit is contained in:
Xiaoyu Yao 2019-06-06 11:17:59 -07:00 committed by Nanda kumar
parent fe069570d8
commit 76c0183ae3
2 changed files with 3 additions and 4 deletions

View File

@ -114,8 +114,6 @@ public class HddsDispatcher implements ContainerDispatcher, Auditor {
@Override
public void shutdown() {
// Shutdown the volumes
volumeSet.shutdown();
}
/**

View File

@ -87,6 +87,7 @@ public class BenchMarkDatanodeDispatcher {
private List<Long> containers;
private List<Long> keys;
private List<String> chunks;
private VolumeSet volumeSet;
@Setup(Level.Trial)
public void initialize() throws IOException {
@ -103,7 +104,7 @@ public class BenchMarkDatanodeDispatcher {
conf.set("dfs.datanode.data.dir", baseDir + File.separator + "data");
ContainerSet containerSet = new ContainerSet();
VolumeSet volumeSet = new VolumeSet(datanodeUuid, conf);
volumeSet = new VolumeSet(datanodeUuid, conf);
StateContext context = new StateContext(
conf, DatanodeStates.RUNNING, null);
ContainerMetrics metrics = ContainerMetrics.create(conf);
@ -161,7 +162,7 @@ public class BenchMarkDatanodeDispatcher {
@TearDown(Level.Trial)
public void cleanup() throws IOException {
dispatcher.shutdown();
volumeSet.shutdown();
FileUtils.deleteDirectory(new File(baseDir));
}