Alissa Bonas has posted comments on this change.

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


Patch Set 2: (2 inline comments)

....................................................
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);
Tried to follow Allon's comment, made the whole logic a bit different 
structure.. thanks for the advice.
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);


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);
I tried now to structure the code differently based on your comments - I think 
it looks better and clearer now. Too bad I didn't "boo hoo" in the log :)
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>
Gerrit-Reviewer: Liron Aravot <lara...@redhat.com>
_______________________________________________
Engine-patches mailing list
Engine-patches@ovirt.org
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to