You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "Sumit Agrawal (Jira)" <ji...@apache.org> on 2022/09/12 12:48:00 UTC

[jira] [Created] (HDDS-7215) ContainerBalancer need have separate class handling management and balancing activity

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: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org