HDDS-934. Freon run hung on non-functional pipeline.
Contributed by Nanda kumar.
This commit is contained in:
parent
2af90ccbc3
commit
ea621fa087
@ -270,23 +270,20 @@ public Void call() throws Exception {
|
|||||||
processor.shutdown();
|
processor.shutdown();
|
||||||
processor.awaitTermination(Integer.MAX_VALUE, TimeUnit.MILLISECONDS);
|
processor.awaitTermination(Integer.MAX_VALUE, TimeUnit.MILLISECONDS);
|
||||||
completed = true;
|
completed = true;
|
||||||
progressbar.shutdown();
|
|
||||||
|
|
||||||
if (validateWrites) {
|
if (exception) {
|
||||||
|
progressbar.terminate();
|
||||||
|
} else {
|
||||||
|
progressbar.shutdown();
|
||||||
|
}
|
||||||
|
|
||||||
|
if (validator != null) {
|
||||||
validator.join();
|
validator.join();
|
||||||
}
|
}
|
||||||
ozoneClient.close();
|
ozoneClient.close();
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
private void parseOptions(CommandLine cmdLine) {
|
|
||||||
if (keySize < 1024) {
|
|
||||||
throw new IllegalArgumentException(
|
|
||||||
"keySize can not be less than 1024 bytes");
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Adds ShutdownHook to print statistics.
|
* Adds ShutdownHook to print statistics.
|
||||||
*/
|
*/
|
||||||
|
Loading…
Reference in New Issue
Block a user