HDFS-14502. keepResults option in NNThroughputBenchmark should call saveNamespace(). Contributed by Konstantin V Shvachko.
This commit is contained in:
parent
7a5d9ab9ee
commit
9836bac35c
|
@ -287,6 +287,11 @@ public class NNThroughputBenchmark implements Tool {
|
|||
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