devmadhuu commented on code in PR #5841:
URL: https://github.com/apache/ozone/pull/5841#discussion_r1433412635
##########
hadoop-ozone/recon/src/main/java/org/apache/hadoop/ozone/recon/fsck/ContainerHealthTask.java:
##########
@@ -132,7 +133,21 @@ public void triggerContainerHealthCheck() {
" process {} existing database records.",
Time.monotonicNow() - start, existingCount);
start = Time.monotonicNow();
- final List<ContainerInfo> containers = containerManager.getContainers();
+ checkAndProcessContainers(unhealthyContainerStateStatsMap, start,
+ currentTime);
+ processedContainers.clear();
+ } finally {
+ lock.writeLock().unlock();
+ }
+ }
+
+ private void checkAndProcessContainers(
+ Map<UnHealthyContainerStates, Map<String, Long>>
+ unhealthyContainerStateStatsMap, long start, long currentTime) {
Review Comment:
Ok, I made the changes. Thanks.
--
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]