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