}
Map<String, JobParameter> param = new TreeMap<String, JobParameter>();
param.put(JobConstants.CLUSTER_NAME_JOB_PARAM, new JobParameter(clusterName));
param.put(JobConstants.TIMESTAMP_JOB_PARAM, new JobParameter(new Date()));
param.put(JobConstants.CLUSTER_FAILURE_STATUS_JOB_PARAM, new JobParameter(ClusterStatus.UPGRADE_ERROR.name()));
JobParameters jobParameters = new JobParameters(param);
clusterEntityMgr.storeClusterLastStatus(clusterName);
clusterEntityMgr.updateClusterStatus(clusterName, ClusterStatus.UPGRADING);
clusterEntityMgr.updateNodesActionForUpgrade(clusterName, Constants.NODE_ACTION_UPGRADING);
clusterEntityMgr.cleanupErrorForClusterUpgrade(clusterName);
try {