HDFS-14502. keepResults option in NNThroughputBenchmark should call saveNamespace(). Contributed by Konstantin V Shvachko.
This commit is contained in:
parent
6d0e79c121
commit
c31b7b8d52
@ -288,6 +288,11 @@ void cleanUp() throws IOException {
|
||||
false);
|
||||
if(!keepResults)
|
||||
clientProto.delete(getBaseDir(), true);
|
||||
else {
|
||||
clientProto.setSafeMode(HdfsConstants.SafeModeAction.SAFEMODE_ENTER,
|
||||
true);
|
||||
clientProto.saveNamespace(0, 0);
|
||||
}
|
||||
}
|
||||
|
||||
int getNumOpsExecuted() {
|
||||
|
Loading…
Reference in New Issue
Block a user