Change in ovirt-engine[master]: core: Set unmanaged commands status on engine start

laravot at redhat.com laravot at redhat.com
Mon Mar 7 09:19:29 UTC 2016


Liron Aravot has submitted this change and it was merged.

Change subject: core: Set unmanaged commands status on engine start
......................................................................


core: Set unmanaged commands status on engine start

When the engine is shutdown when there are running commands, when the engine
starts again the status of those commands will remain as 'ACTIVE' forever as they
aren't managed by the ATM or by the Coco framework. This may cause to their parent
commands to never end.

This patch adds that responsibllity to the CommandsRepository, as soon as its initiated it'll
update the status of those commands to be ENDED_WITH_FAILURE.

Change-Id: Ib1da52c611fc4171b31d9109b599e4688e7e2b62
Signed-off-by: Liron Aravot <laravot at redhat.com>
---
M backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/tasks/AsyncTaskManager.java
M backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/tasks/CommandsRepository.java
2 files changed, 30 insertions(+), 0 deletions(-)

Approvals:
  Moti Asayag: Looks good to me, approved
  Liron Aravot: Verified; Passed CI tests



-- 
To view, visit https://gerrit.ovirt.org/53564
To unsubscribe, visit https://gerrit.ovirt.org/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: Ib1da52c611fc4171b31d9109b599e4688e7e2b62
Gerrit-PatchSet: 11
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Liron Aravot <laravot at redhat.com>
Gerrit-Reviewer: Jenkins CI
Gerrit-Reviewer: Liron Aravot <laravot at redhat.com>
Gerrit-Reviewer: Moti Asayag <masayag at redhat.com>
Gerrit-Reviewer: gerrit-hooks <automation at ovirt.org>



More information about the Engine-commits mailing list