Michael Kublin has posted comments on this change.

Change subject: core: Remove image while VDSM returns not exist.
......................................................................


Patch Set 1: (1 inline comment)

....................................................
File 
backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/RemoveDiskCommand.java
Line 294:             setLock(null);
Line 295:             if (vdcReturnValue.getSucceeded()) {
Line 296:                 getParameters().getImagesParameters().add(p);
Line 297:                 setSucceeded(vdcReturnValue.getSucceeded());
Line 298:                 if (vdcReturnValue.getInternalTaskIdList().isEmpty()) 
{
Yes, and if task was not created why remove image?
Also, how these related to your comment : " // We get here if we got 
imageDoesNotExistsInDomain for the disk image from VDSM" - comment is wrong , 
your action is wrong.
You should pass fault inside VdcReturnValue and based on fault decide how to 
proceed, in such way you even not required to write comment because a flow 
becomes obvious.
Line 299:                     // We get here if we got 
imageDoesNotExistsInDomain for the disk image from VDSM.
Line 300:                     endCommand();
Line 301:                 } else {
Line 302:                     
getReturnValue().getTaskIdList().addAll(vdcReturnValue.getInternalTaskIdList());


--
To view, visit http://gerrit.ovirt.org/12077
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: comment
Gerrit-Change-Id: I36915c44e65e20e3ce222683650a562603e4bb05
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Maor Lipchuk <mlipc...@redhat.com>
Gerrit-Reviewer: Allon Mureinik <amure...@redhat.com>
Gerrit-Reviewer: Daniel Erez <de...@redhat.com>
Gerrit-Reviewer: Liron Aravot <lara...@redhat.com>
Gerrit-Reviewer: Maor Lipchuk <mlipc...@redhat.com>
Gerrit-Reviewer: Michael Kublin <mkub...@redhat.com>
Gerrit-Reviewer: liron aravot <liron.ara...@gmail.com>
_______________________________________________
Engine-patches mailing list
Engine-patches@ovirt.org
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to