xichen01 commented on code in PR #4251:
URL: https://github.com/apache/ozone/pull/4251#discussion_r1098663068
##########
hadoop-ozone/tools/src/main/java/org/apache/hadoop/ozone/freon/BaseFreonGenerator.java:
##########
@@ -266,14 +311,27 @@ public void init() {
}, 10);
executor = Executors.newFixedThreadPool(threadNo);
-
- progressBar = new ProgressBar(System.out, testNo, successCounter::get,
- freonCommand.isInteractive());
Review Comment:
this has been restored.
##########
hadoop-ozone/tools/src/main/java/org/apache/hadoop/ozone/freon/BaseFreonGenerator.java:
##########
@@ -311,6 +369,12 @@ public void printReport() {
Consumer<String> print = freonCommand.isInteractive()
? System.out::println
: LOG::info;
+
+ messages.add("\nOption:");
+ for (CommandLine.Model.OptionSpec option : spec.options()) {
+ String name = option.longestName();
+ messages.add(name + "=" + option.getValue());
+ }
Review Comment:
Add a --verbose mode Option.
##########
hadoop-ozone/tools/src/main/java/org/apache/hadoop/ozone/freon/BaseFreonGenerator.java:
##########
@@ -117,6 +138,11 @@ public class BaseFreonGenerator {
private ExecutorService executor;
private ProgressBar progressBar;
+ private final ThreadLocal<Long> threadSequenceId = new ThreadLocal<>();
+ private final AtomicLong id = new AtomicLong(0);
+
+ private final AtomicBoolean completion = new AtomicBoolean(false);
Review Comment:
done.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]