Change in ovirt-engine[master]: core: Deadlock detected when performing plug/unplug VNIC action

emesika at redhat.com emesika at redhat.com
Wed Jun 18 08:00:45 UTC 2014


Eli Mesika has submitted this change and it was merged.

Change subject: core: Deadlock detected when performing plug/unplug VNIC action
......................................................................


core: Deadlock detected when performing plug/unplug VNIC action

A previous patch already sorted all updates by the entity ID.
This patch makes sure that VmDeviceUtil.updateBootOrderInVmDeviceAndStoreToDB
stores in a batch a sorted list of the VmDevices, so that no dead lock can occur.
As a side effect, a performance boost for the update occurs, as instead of in a
loop all updates go through batch.

Change-Id: I40e04d943076d046c379d40004157585cb141771
Bug-Url: https://bugzilla.redhat.com/1102689
Signed-off-by: lzelkha at redhat.com <lzelkha at redhat.com>
---
M backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/utils/VmDeviceUtils.java
M backend/manager/modules/dal/src/main/java/org/ovirt/engine/core/dao/VmDeviceDAO.java
M backend/manager/modules/dal/src/main/java/org/ovirt/engine/core/dao/VmDeviceDAODbFacadeImpl.java
M backend/manager/modules/dal/src/test/java/org/ovirt/engine/core/dao/VmDeviceDAOTest.java
4 files changed, 43 insertions(+), 7 deletions(-)

Approvals:
  Liran Zelkha: Verified
  Yair Zaslavsky: Looks good to me, approved



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

Gerrit-MessageType: merged
Gerrit-Change-Id: I40e04d943076d046c379d40004157585cb141771
Gerrit-PatchSet: 2
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Liran Zelkha <lzelkha at redhat.com>
Gerrit-Reviewer: Barak Azulay <bazulay at redhat.com>
Gerrit-Reviewer: Eli Mesika <elimesika at gmail.com>
Gerrit-Reviewer: Eli Mesika <emesika at redhat.com>
Gerrit-Reviewer: Liran Zelkha <lzelkha at redhat.com>
Gerrit-Reviewer: Oved Ourfali <oourfali at redhat.com>
Gerrit-Reviewer: Roy Golan <rgolan at redhat.com>
Gerrit-Reviewer: Yair Zaslavsky <yzaslavs at redhat.com>
Gerrit-Reviewer: automation at ovirt.org
Gerrit-Reviewer: oVirt Jenkins CI Server



More information about the Engine-commits mailing list