Nanda kumar created HDDS-1239:
---------------------------------

             Summary: Use chillmode state from ChillModeManager in 
ChillModePrecheck
                 Key: HDDS-1239
                 URL: https://issues.apache.org/jira/browse/HDDS-1239
             Project: Hadoop Distributed Data Store
          Issue Type: Improvement
          Components: SCM
    Affects Versions: 0.3.0
            Reporter: Nanda kumar
            Assignee: Nanda kumar


Currently {{ChillModePrecheck}} is instantiated in multiple places and it 
maintains its own state of chillmode. Because of this {{BlockManagerImpl}} and 
{{SCMClientProtocolServer}} listens to chillmode status event to update 
{{ChillModePrecheck}} that they maintain.

It will be easier if {{ChillModePrecheck}} queries {{SCMChillModeManager}} to 
get the current chillmode state. It will also make the code simple if 
{{SCMChillModeManager}} provides {{ChillModePrecheck}} instance, instead of 
everyone creating a new object of {{ChillModePrecheck}}.




--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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

Reply via email to