Alissa Bonas has posted comments on this change.

Change subject: Reinitialize DC doesn't connect all hosts to the new 
master(#880180)
......................................................................


Patch Set 2: (1 inline comment)

pls see my comment in code

....................................................
File 
backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/storage/RecoveryStoragePoolCommand.java
Line 83:     }
Line 84: 
Line 85:     @Override
Line 86:     protected boolean performConnectOperations(VDS vds) {
Line 87:         if (vds.getId().equals(getVds().getId())
You might get here null pointer exception for vds.getId() by not making sure 
first that vds is not null...
also perhaps it will be good to name this method differently - this method 
doesn't actually perform the connect operations, but rather just checks if it's 
necessary to perform it, so maybe something like isConnectOperationRequired.
Line 88:                 || 
StorageHelperDirector.getInstance().getItem(getStorageDomain().getstorage_type())
Line 89:                         
.ConnectStorageToDomainByVdsId(getNewMaster(false), vds.getId())) {
Line 90:             return true;
Line 91:         }


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

Gerrit-MessageType: comment
Gerrit-Change-Id: I3733b732b37f3a687b24f90bfdb1799757434d75
Gerrit-PatchSet: 2
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Liron Aravot <lara...@redhat.com>
Gerrit-Reviewer: Alissa Bonas <abo...@redhat.com>
Gerrit-Reviewer: Allon Mureinik <amure...@redhat.com>
Gerrit-Reviewer: Ayal Baron <aba...@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: Tal Nisan <tni...@redhat.com>
Gerrit-Reviewer: Vered Volansky <vvola...@redhat.com>
_______________________________________________
Engine-patches mailing list
Engine-patches@ovirt.org
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to