adoroszlai commented on a change in pull request #142: HDDS-2448 Delete
container command should used a thread pool
URL: https://github.com/apache/hadoop-ozone/pull/142#discussion_r347895442
##########
File path:
hadoop-hdds/container-service/src/main/java/org/apache/hadoop/ozone/container/common/statemachine/commandhandler/DeleteContainerCommandHandler.java
##########
@@ -40,28 +46,39 @@
private static final Logger LOG =
LoggerFactory.getLogger(DeleteContainerCommandHandler.class);
- private int invocationCount;
- private long totalTime;
+ private final AtomicInteger invocationCount = new AtomicInteger(0);
+ private final AtomicLong totalTime = new AtomicLong(0);
+ private final ThreadPoolExecutor executor;
Review comment:
Prefer declaring it as the more generic `ExecutorService`.
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]