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

   ## What changes were proposed in this pull request?
   
   Mis Replication is another form of under replication, but with a lower 
priority. Therefore it would make sense that mis-replicated containers are 
queued in the same queue as under-replicated. Ideally, we would not spend 
resources fixing mis-replicated until all the under replicated containers are 
handled, so having them in separate queues doesn't add any value.
   
   Mis-Replicated containers are queued with a priority lower than 
decommissioning containers in this PR, so they do not block decommission from 
completing if they are ahead of it in the queue.
   
   ## What is the link to the Apache JIRA
   
   https://issues.apache.org/jira/browse/HDDS-7654
   
   ## How was this patch tested?
   
   Added a unit test to prove the mis-rep container queues with a lower 
priority than decommission. Small changes to existing tests cover most of the 
rest of the changes.
   
   Ideally we should have a test in TestReplicationManager to cover the logic 
in `ReplicationManager.processUnderReplicatedContainer` but the way things are 
currently structured, that would need a bit of refactoring to be feasible, as 
ideally we should inject the under / over / mis-rep handler and then we can 
mock them to ensure the correct one is called. At the moment, they are created 
inside ReplicationManager so that is not possible.
   


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