Yair Zaslavsky has submitted this change and it was merged.
Change subject: core: Force removing of zombie tasks
......................................................................
core: Force removing of zombie tasks
The following patch removes zombie tasks from db,
In the following way:
A. It tries to stop the task - if fails to remove, it changes the task state to ended,
and its status to finish - this will present a chance to clear the task
b. For finished tasks - tries to clean the task at vdsm - and removes it from DB.
Both a and b are achieved by introrducing new stopTask and ClearTask method that
accept boolean flags for "force" behavior
Bug-Url:
https://bugzilla.redhat.com/907465
Change-Id: I8935ae5bced057aa3f37bf7ef09d3f2cf153571e
Signed-off-by: Yair Zaslavsky <yzaslavs(a)redhat.com>
---
M
backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/AsyncTaskManager.java
M backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/SPMAsyncTask.java
2 files changed, 23 insertions(+), 4 deletions(-)
Approvals:
Yair Zaslavsky: Verified; Looks good to me, approved
--
To view, visit
http://gerrit.ovirt.org/11892
To unsubscribe, visit
http://gerrit.ovirt.org/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I8935ae5bced057aa3f37bf7ef09d3f2cf153571e
Gerrit-PatchSet: 2
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Yair Zaslavsky <yzaslavs(a)redhat.com>
Gerrit-Reviewer: Maor Lipchuk <mlipchuk(a)redhat.com>
Gerrit-Reviewer: Michael Kublin <mkublin(a)redhat.com>
Gerrit-Reviewer: Yair Zaslavsky <yzaslavs(a)redhat.com>