HDFS-14502. keepResults option in NNThroughputBenchmark should call saveNamespace(). Contributed by Konstantin V Shvachko.

This commit is contained in:
Konstantin V Shvachko 2019-05-24 12:34:29 -07:00
parent 380289a167
commit 2afc770443

View File

@ -286,6 +286,11 @@ void cleanUp() throws IOException {
false);
if(!keepResults)
clientProto.delete(getBaseDir(), true);
else {
clientProto.setSafeMode(HdfsConstants.SafeModeAction.SAFEMODE_ENTER,
true);
clientProto.saveNamespace();
}
}
int getNumOpsExecuted() {