Change in ovirt-engine[master]: core: Clean "only in db" async tasks

yzaslavs at redhat.com yzaslavs at redhat.com
Sun Feb 24 11:21:41 UTC 2013


Yair Zaslavsky has submitted this change and it was merged.

Change subject: core: Clean "only in db" async tasks
......................................................................


core: Clean "only in db" async tasks

When system restarts, storagePoolUp event is sent per each SPM
that becomes up.
We query the SPM and get its tasks.
If we had tasks in DB, that did not exist in SPM, we will remove them from DB.
This is an alternative to previous versions of this patch, in which I introduced
zombie treatment for these tasks.

Change-Id: Ie13ae21eaadb1bb621a7fc8ad471e60387a3699b
Signed-off-by: Yair Zaslavsky <yzaslavs at redhat.com>
---
M backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/AsyncTaskManager.java
1 file changed, 35 insertions(+), 4 deletions(-)

Approvals:
  Yair Zaslavsky: Verified; Looks good to me, approved


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

Gerrit-MessageType: merged
Gerrit-Change-Id: Ie13ae21eaadb1bb621a7fc8ad471e60387a3699b
Gerrit-PatchSet: 8
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Yair Zaslavsky <yzaslavs at redhat.com>
Gerrit-Reviewer: Eli Mesika <emesika at redhat.com>
Gerrit-Reviewer: Michael Kublin <mkublin at redhat.com>
Gerrit-Reviewer: Yair Zaslavsky <yzaslavs at redhat.com>



More information about the Engine-commits mailing list