siddhantsangwan opened a new pull request, #5080:
URL: https://github.com/apache/ozone/pull/5080

   ## What changes were proposed in this pull request?
   
   `ECUnderReplicationHandler` checks if current available source datanodes + 
potential replica datanodes satisfy placement policy. If they don't, the 
targets are rejected and recovery fails. While this check makes some sense, it 
can block container recovery. Since under replication is more serious than mis 
replication, we should let a new replica be reconstructed even if it doesn't 
satisfy placement policy. 
   
   Also, we should rely on the policy to suggest a node that satisfies the 
policy - if there is none, the policy will fallback and try to suggest a node 
on a rack where the container is already present. 
   
   Changes:
   Allow recovery even if placement policy is not satisfied. Also added some 
logs.
   
   ## What is the link to the Apache JIRA
   
   https://issues.apache.org/jira/browse/HDDS-9019
   
   ## How was this patch tested?
   
   Modified existing UT according to the new expectation.


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