sodonnel commented on code in PR #9829:
URL: https://github.com/apache/ozone/pull/9829#discussion_r2961651128


##########
hadoop-hdds/server-scm/src/main/java/org/apache/hadoop/hdds/scm/container/replication/QuasiClosedStuckReplicaCount.java:
##########
@@ -106,28 +157,29 @@ public List<MisReplicatedOrigin> 
getUnderReplicatedReplicas() {
           misReplicatedOrigins.add(new MisReplicatedOrigin(entry.getValue(), 
additionalReplicas));
         }
       } else {
-        if (inService.size() < 3) {
-          int additionalReplicas = 3 - inService.size();
+        if (inService.size() < bestOriginCopies) {

Review Comment:
   Why would we want to have 4 of 5 copies of a replica with only a single 
origin? Why treat it different from a non-quasi closed container which can only 
have 3 copies? There isn't really any value in the single origin case of having 
more than 3, as the rest of the replicas on the cluster have only a redundancy 
of 3.



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