Ramesh N has uploaded a new change for review. Change subject: gluster: consider rebalance fail in stop rebalance ......................................................................
gluster: consider rebalance fail in stop rebalance Considering the rebalance failed case in stop rebalance BLL and update the task status correctly. Change-Id: I147c43c6925b8a52cf8a7667a5d7f101969f5368 Bug-Url: https://bugzilla.redhat.com/1019598 Signed-off-by: Ramesh Nachimuthu <[email protected]> --- M backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/gluster/StopRebalanceGlusterVolumeCommand.java 1 file changed, 1 insertion(+), 1 deletion(-) git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/39/21339/1 diff --git a/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/gluster/StopRebalanceGlusterVolumeCommand.java b/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/gluster/StopRebalanceGlusterVolumeCommand.java index c846000..5974e56 100644 --- a/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/gluster/StopRebalanceGlusterVolumeCommand.java +++ b/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/gluster/StopRebalanceGlusterVolumeCommand.java @@ -65,7 +65,7 @@ GlusterVolumeTaskStatusEntity rebalanceStatusEntity = (GlusterVolumeTaskStatusEntity) vdsReturnaValue.getReturnValue(); JobExecutionStatus stepStatus = rebalanceStatusEntity.getStatusSummary().getStatus(); - if (stepStatus != null && JobExecutionStatus.FINISHED.equals(stepStatus)) { + if (JobExecutionStatus.FINISHED == stepStatus || JobExecutionStatus.FAILED == stepStatus) { endStepJob(stepStatus, getStepMessageMap(stepStatus), true); } else { endStepJob(JobExecutionStatus.ABORTED, getStepMessageMap(JobExecutionStatus.ABORTED), false); -- To view, visit http://gerrit.ovirt.org/21339 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I147c43c6925b8a52cf8a7667a5d7f101969f5368 Gerrit-PatchSet: 1 Gerrit-Project: ovirt-engine Gerrit-Branch: master Gerrit-Owner: Ramesh N <[email protected]> _______________________________________________ Engine-patches mailing list [email protected] http://lists.ovirt.org/mailman/listinfo/engine-patches
