Eason09053360 commented on code in PR #11059:
URL: https://github.com/apache/ozone/pull/11059#discussion_r3832097010


##########
hadoop-ozone/integration-test-recon/src/test/java/org/apache/hadoop/ozone/recon/TestReconTasks.java:
##########
@@ -340,9 +340,9 @@ public void 
testContainerHealthTaskDetectsUnderReplicatedAfterNodeFailure()
    * <p>Classification logic: When a CLOSING container has zero replicas,
    * {@code ClosingContainerHandler} samples it as {@code MISSING}. Then
    * {@code handleMissingContainer()} calls {@code isEmptyMissing()} which 
checks
-   * {@link ContainerInfo#getNumberOfKeys()}. Since the container was created 
via
-   * XceiverClient bypassing Ozone Manager, SCM's key count is 0, so the 
container
-   * is classified as {@code EMPTY_MISSING} rather than {@code MISSING}.</p>
+   * {@link ContainerInfo#getNumberOfKeys()}. The container is created empty 
(no block is written), so the
+   * datanode reports a replica key count of 0 and Recon's {@link 
ContainerInfo} key count stays 0, so the
+   * container is classified as {@code EMPTY_MISSING} rather than {@code 
MISSING}.</p>

Review Comment:
   Applied !
   Thanks for reviewing .



-- 
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]

Reply via email to