Allon Mureinik has posted comments on this change.
Change subject: core: handle error when iso domain in maintenance
......................................................................
Patch Set 2: (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);
IMHO, the real issue here is that refreshSucceed is being abused.
logically, what we need to do is something like this:
foreach possible pool (see line 288):
if (status != active):
log ("not going to try");
continue; // could be changed to an else, style choice
refreshSucceeded = attempToRefresh
if (refreshSucceeded):
updateRepoMetaData
else : // order of if an else can be switched, no biggie.
log ("can't refresh, boo hoo");
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 <[email protected]>
Gerrit-Reviewer: Alissa Bonas <[email protected]>
Gerrit-Reviewer: Allon Mureinik <[email protected]>
Gerrit-Reviewer: Eli Mesika <[email protected]>
Gerrit-Reviewer: Liron Aravot <[email protected]>
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches