Michael Kublin has posted comments on this change.

Change subject: core: initVdsOnUp - remove reconstruct and host status.
......................................................................


Patch Set 7: (2 inline comments)

....................................................
File 
backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/InitVdsOnUpCommand.java
Line 183:                     new 
ConnectStoragePoolVDSCommandParameters(vds.getId(), storagePoolId,
Line 184:                             vds.getVdsSpmId(), masterDomain.getId(),
Line 185:                             
storagePool.getmaster_domain_version())).getSucceeded();
Line 186:         } catch (VdcBLLException e) {
Line 187:             boolean isMasterDomainInactiveOrUnknown = 
(masterDomain.getStatus() == StorageDomainStatus.InActive
No boolean needed there, it used only once, bad code styling
Line 188:                     || masterDomain.getStatus() == 
StorageDomainStatus.Unknown);
Line 189:             if (e.getErrorCode() != VdcBllErrors.VDS_NETWORK_ERROR && 
isMasterDomainInactiveOrUnknown) {
Line 190:                 shouldProceedVdsStats = false;
Line 191:                 result.setSuccess(true);


Line 187:             boolean isMasterDomainInactiveOrUnknown = 
(masterDomain.getStatus() == StorageDomainStatus.InActive
Line 188:                     || masterDomain.getStatus() == 
StorageDomainStatus.Unknown);
Line 189:             if (e.getErrorCode() != VdcBllErrors.VDS_NETWORK_ERROR && 
isMasterDomainInactiveOrUnknown) {
Line 190:                 shouldProceedVdsStats = false;
Line 191:                 result.setSuccess(true);
Please explain meaning of line 191?
Line 192:             } else {
Line 193:                 log.errorFormat("Could not connect host {0} to pool 
{1}", vds.getName(), storagePool
Line 194:                         .getname());
Line 195:                 result.setSuccess(false);


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

Gerrit-MessageType: comment
Gerrit-Change-Id: I6418b9d2826146e1e4ceff4341c6d7cd3a0024af
Gerrit-PatchSet: 7
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Liron Ar <lara...@redhat.com>
Gerrit-Reviewer: Allon Mureinik <amure...@redhat.com>
Gerrit-Reviewer: Ayal Baron <aba...@redhat.com>
Gerrit-Reviewer: Barak Azulay <bazu...@redhat.com>
Gerrit-Reviewer: Liron Ar <lara...@redhat.com>
Gerrit-Reviewer: Michael Kublin <mkub...@redhat.com>
_______________________________________________
Engine-patches mailing list
Engine-patches@ovirt.org
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to