incubator-ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "vitthal (Suhas) Gogate (Assigned) (JIRA)" <j...@apache.org>
Subject [jira] [Assigned] (AMBARI-122) Make explicit call to Cluster.updateClusterState() when state of cluster changes
Date Thu, 03 Nov 2011 00:07:32 GMT

     [ https://issues.apache.org/jira/browse/AMBARI-122?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

vitthal (Suhas) Gogate reassigned AMBARI-122:
---------------------------------------------

    Assignee: Devaraj Das
    
> Make explicit call to Cluster.updateClusterState() when state of cluster changes
> --------------------------------------------------------------------------------
>
>                 Key: AMBARI-122
>                 URL: https://issues.apache.org/jira/browse/AMBARI-122
>             Project: Ambari
>          Issue Type: Bug
>          Components: controller
>    Affects Versions: 0.1.0
>            Reporter: vitthal (Suhas) Gogate
>            Assignee: Devaraj Das
>             Fix For: 0.1.0
>
>
> Previously Cluster.getClusterState() was returning the reference to ClusterState object
and changing any elements of this state object would change the cluster state. Now as we have
to persist the state, we have to explicitly make a call to Cluster.updateCluterState() when
cluster state changes... 
> Following scenario will NOT update cluster state 
> Cluster cls = getClusterByName(clusterName);
> cls.getClusterState().setState("ATTIC"); 
> Instead, 
> Cluster cls = getClusterByName(clusterName);
> ClusterState cs = cls.getClusterState();
> cs.setState("ATTIC");
> cls.updateClusterState(cs);

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message