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

   I also wonder about other scenarios. Eg, lets say we have 3 replicas, and 
one is unhealthy (scrubber found a problem with it, and marked it bad). Right 
now, when we make the call to the placement policy we will pass the 2 good 
nodes and the unhealthy replica node as excluded and ask for 1 new node - which 
is effectively the same as passing 2 good nodes and a decommission node, as it 
will still confuse the placement algorithm.
   
   What we really need to do is pass used nodes as nodes 1 and 2, as they are 
going to stay, and pass the unhealthy replica node as excluded so we don't 
select that node for a new copy. But we need that other Jira implemented to 
have usedNodes working in the RackAwarePlacementPolicy.
   
   So I think the fix here addresses a partial solution for a specific 
scenario, but leaves other parts unfixed.


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