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


   ## What changes were proposed in this pull request?
   
   Balancer show an incorrect iteration result in some cases, such as:
   1. Reaches the limit for max size to move in an iteration, but some moves 
fail (in replication manager). This will return the incorrect result 
`MAX_SIZE_TO_MOVE_REACHED`. The correct result should be `ITERATION_COMPLETED`.
   2. Same as above, but reaches the limit for max datanodes to involve and 
then some moves fail in replication manager.
   
   This PR changes the `doIteration` and `checkIterationMoveResults` methods in 
ContainerBalancer to solve this bug.
   
   ## What is the link to the Apache JIRA
   
   https://issues.apache.org/jira/browse/HDDS-6367
   
   ## How was this patch tested?
   
   Added a UT and some assertions in the existing ones.


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