Alissa Bonas has posted comments on this change.

Change subject: core: handle error when iso domain in maintenance
......................................................................


Patch Set 2: No score

(1 inline comment)

....................................................
File 
backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/IsoDomainListSyncronizer.java
Line 305:             if (!refreshSucceeded) {
Line 306:                 log.debugFormat("Failed refreshing Storage domain id 
{0}, for {1} file type in storage pool id {2}.",
Line 307:                         storageDomainId,
Line 308:                         fileTypeExt,
Line 309:                         storagePoolId);
You have a point. But according to what you say,  we should log as problematic 
only  domains in status "active" that could not be refreshed?
If that's how it goes - isn't the second "if" redundant at all? (the one 
starting line 305) can't it be merged with the first if that checks refresh for 
active domans?
Line 310:                 if(storagePoolIsoMap.getstatus()!= 
StorageDomainStatus.Maintenance)   {
Line 311:                        // set a mock repository file meta data with 
storage domain id and storage pool id.
Line 312:                     RepoFileMetaData repoFileMetaData = new 
RepoFileMetaData();
Line 313:                     repoFileMetaData.setStoragePoolId(storagePoolId);


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

Gerrit-MessageType: comment
Gerrit-Change-Id: Ide53f42c087ffbc9240cccc033e809ff8117ec8c
Gerrit-PatchSet: 2
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Alissa Bonas <abo...@redhat.com>
Gerrit-Reviewer: Alissa Bonas <abo...@redhat.com>
Gerrit-Reviewer: Allon Mureinik <amure...@redhat.com>
Gerrit-Reviewer: Eli Mesika <emes...@redhat.com>
_______________________________________________
Engine-patches mailing list
Engine-patches@ovirt.org
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to