sodonnel commented on PR #6617:
URL: https://github.com/apache/ozone/pull/6617#issuecomment-2090853481

   I am not sure on this. @siddhantsangwan might remember more clearly, as I 
think he worked on it.
   
   However, eligibleReplicas is the set of replias with pendingDelete and out 
of service removed. Ie, those replicas are going to go away "soon" so we should 
not consider them for over replication / placement or removal. So the set is 
trimmed down to that. Then we retain certain unhealthy replicas by also 
removing them from the set.
   
   At the end of the trim, we have a set of replicas that are in the system and 
can be removed. If we use the original set for the placement check, then there 
are potentially replicas that are going to be removed in it, and so the check 
is not consistent with the future view.
   
   By using the eligible replicas in the placement check, we are using all the 
healthy and not going to be deleted replicas, which seems like the correct 
thing to do.


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