HDDS-934. Freon run hung on non-functional pipeline.

Contributed by Nanda kumar.
This commit is contained in:
Nanda kumar 2018-12-20 11:10:08 +05:30
parent 2af90ccbc3
commit ea621fa087
1 changed files with 7 additions and 10 deletions

View File

@ -270,23 +270,20 @@ public final class RandomKeyGenerator implements Callable<Void> {
processor.shutdown();
processor.awaitTermination(Integer.MAX_VALUE, TimeUnit.MILLISECONDS);
completed = true;
progressbar.shutdown();
if (validateWrites) {
if (exception) {
progressbar.terminate();
} else {
progressbar.shutdown();
}
if (validator != null) {
validator.join();
}
ozoneClient.close();
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.
*/