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

   But it is wrong for the placement policy to return a decommissioning node. 
It does indeed filter out any decommission nodes it finds and retries. So it is 
"removing them" but in a sub-optimal way.
   
   The caller should not need to know all illegal nodes it needs to pass into 
the placement policy. What if there is another illegal node type in the future? 
Then we have to modified all the callers, rather than a single place.
   
   You are probably correct that it is not good to modify the passed parameter 
list, but we can copy it into a new list that is used inside the placement 
policy and add to that copy.


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