Liron Ar has posted comments on this change.
Change subject: engine: Speed up SPM re-selection process.
......................................................................
Patch Set 5:
(2 comments)
....................................................
File
backend/manager/modules/vdsbroker/src/main/java/org/ovirt/engine/core/vdsbroker/vdsbroker/SpmStopVDSCommand.java
Line 31: new
VdsIdVDSCommandParametersBase(getVds().getId()));
Line 32:
Line 33: if (isNotSPM(vdsReturnValue)) {
Line 34: performSpmStop = false;
Line 35: getVDSReturnValue().setSucceeded(true);
won't it enter now the if clause at line 54 and return wrong result?
Line 36: } else {
Line 37:
getVDSReturnValue().setSucceeded(vdsReturnValue.getSucceeded());
Line 38:
getVDSReturnValue().setVdsError(vdsReturnValue.getVdsError());
Line 39:
Line 89: return vdsStatus != VDSStatus.NonResponsive &&
getVds().getStatus() != VDSStatus.Connecting;
Line 90: }
Line 91:
Line 92: private boolean isNotSPM(VDSReturnValue returnValue) {
Line 93: return returnValue != null && returnValue.getVdsError() !=
null &&
i assume that the first check can be removed safely , but that's your choice.
Line 94: returnValue.getVdsError().getCode() ==
VdcBllErrors.SpmStatusError;
Line 95: }
Line 96:
Line 97: @Override
--
To view, visit http://gerrit.ovirt.org/18013
To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: comment
Gerrit-Change-Id: I2c191ad8d4ec0fb4f5f8ff68b84fa5189ecc7114
Gerrit-PatchSet: 5
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Sergey Gotliv <[email protected]>
Gerrit-Reviewer: Alissa Bonas <[email protected]>
Gerrit-Reviewer: Allon Mureinik <[email protected]>
Gerrit-Reviewer: Daniel Erez <[email protected]>
Gerrit-Reviewer: Liron Ar <[email protected]>
Gerrit-Reviewer: Maor Lipchuk <[email protected]>
Gerrit-Reviewer: Omer Frenkel <[email protected]>
Gerrit-Reviewer: Sergey Gotliv <[email protected]>
Gerrit-Reviewer: Yaniv Bronhaim <[email protected]>
Gerrit-Reviewer: oVirt Jenkins CI Server
Gerrit-HasComments: Yes
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches