Sumit Agrawal created HDDS-7215:
-----------------------------------

             Summary: ContainerBalancer need have separate class handling 
management and balancing activity
                 Key: HDDS-7215
                 URL: https://issues.apache.org/jira/browse/HDDS-7215
             Project: Apache Ozone
          Issue Type: Sub-task
            Reporter: Sumit Agrawal


ContinerBalancer performs 2 activity:
 # Management: start and stop
 # Balancing: actual running of balancing task

This have problem of shared fields to both management and balancing jobs. Its 
observed deadlock of improper use of lock in management call and balancing 
thread.

Separation of these responsibility will help in clean code and having exclusive 
lock if required. Stopping of balancing do not need to have lock check avoiding 
deadlock case.

 



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to