smengcl commented on code in PR #5620:
URL: https://github.com/apache/ozone/pull/5620#discussion_r1411682191
##########
hadoop-ozone/recon/src/main/java/org/apache/hadoop/ozone/recon/fsck/ContainerHealthStatus.java:
##########
@@ -117,11 +125,28 @@ public boolean isMissing() {
return numReplicas == 0;
}
+ public boolean isEmpty() {
+ return numKeys == 0;
+ }
+
private ContainerPlacementStatus getPlacementStatus(
PlacementPolicy policy, int repFactor) {
List<DatanodeDetails> dns = healthyReplicas.stream()
.map(ContainerReplica::getDatanodeDetails)
.collect(Collectors.toList());
return policy.validateContainerPlacement(dns, repFactor);
}
+
+ private long getNumOfKeysMappedToContainer(long containerID) {
Review Comment:
```suggestion
private long getContainerKeyCount(long containerID) {
```
--
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]