clusterEntityMgr.update(group);
clusterEntityMgr.cleanupActionError(clusterName);
// create job
Map<String, JobParameter> param = new TreeMap<String, JobParameter>();
param.put(JobConstants.CLUSTER_NAME_JOB_PARAM, new JobParameter(
clusterName));
param.put(JobConstants.GROUP_NAME_JOB_PARAM, new JobParameter(
nodeGroupName));
param.put(JobConstants.GROUP_INSTANCE_NEW_NUMBER_JOB_PARAM,
new JobParameter(Long.valueOf(instanceNum)));
param.put(JobConstants.GROUP_INSTANCE_OLD_NUMBER_JOB_PARAM,
new JobParameter(Long.valueOf(oldInstanceNum)));
param.put(JobConstants.TIMESTAMP_JOB_PARAM, new JobParameter(new Date()));
param.put(JobConstants.CLUSTER_SUCCESS_STATUS_JOB_PARAM,
new JobParameter(ClusterStatus.RUNNING.name()));
param.put(JobConstants.CLUSTER_FAILURE_STATUS_JOB_PARAM,
new JobParameter(ClusterStatus.RUNNING.name()));
param.put(JobConstants.VERIFY_NODE_STATUS_SCOPE_PARAM, new JobParameter(
JobConstants.GROUP_NODE_SCOPE_VALUE));
JobParameters jobParameters = new JobParameters(param);
clusterEntityMgr.updateClusterStatus(clusterName, ClusterStatus.UPDATING);
try {
return jobManager.runJob(JobConstants.RESIZE_CLUSTER_JOB_NAME,