diff --git a/hadoop-hdds/container-service/src/main/java/org/apache/hadoop/ozone/container/ozoneimpl/BackgroundContainerDataScanner.java b/hadoop-hdds/container-service/src/main/java/org/apache/hadoop/ozone/container/ozoneimpl/BackgroundContainerDataScanner.java index ec17272a449..1a4f0bf6460 100644 --- a/hadoop-hdds/container-service/src/main/java/org/apache/hadoop/ozone/container/ozoneimpl/BackgroundContainerDataScanner.java +++ b/hadoop-hdds/container-service/src/main/java/org/apache/hadoop/ozone/container/ozoneimpl/BackgroundContainerDataScanner.java @@ -96,6 +96,9 @@ public void scanContainer(Container c) logUnhealthyScanResult(containerId, result, LOG); // Only increment the number of unhealthy containers if the container was not already unhealthy. + // TODO HDDS-11593 (to be merged in to the feature branch from master): Scanner counters will start from zero + // at the beginning of each run, so this will need to be incremented for every unhealthy container seen + // regardless of its previous state. if (controller.markContainerUnhealthy(containerId, result)) { metrics.incNumUnHealthyContainers(); }