Kanagaraj M has submitted this change and it was merged.

Change subject: engine: Avoid race condition between gluster peer probe and 
status
......................................................................


engine: Avoid race condition between gluster peer probe and status

During add of a gluster host, a gluster peer probe command is executed.
If a gluster peer status is also fired at the same time from GlusterSyncJob
this results in the newly added host being removed from the engine database,
as the gluster peer status has not yet recognized the newly added host.

Added lock at cluster level before peer probe to avoid this.

Change-Id: Iaa76cea4c5b5bf7c444680260dd4da5b65665428
Bug-Url: https://bugzilla.redhat.com/972619
Signed-off-by: Sahina Bose <[email protected]>
---
M 
backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/InitVdsOnUpCommand.java
1 file changed, 41 insertions(+), 24 deletions(-)

Approvals:
  Kanagaraj M: Looks good to me, approved
  Sahina Bose: Verified



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

Gerrit-MessageType: merged
Gerrit-Change-Id: Iaa76cea4c5b5bf7c444680260dd4da5b65665428
Gerrit-PatchSet: 6
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Sahina Bose <[email protected]>
Gerrit-Reviewer: Kanagaraj M <[email protected]>
Gerrit-Reviewer: Omer Frenkel <[email protected]>
Gerrit-Reviewer: Sahina Bose <[email protected]>
Gerrit-Reviewer: Shubhendu Tripathi <[email protected]>
Gerrit-Reviewer: oVirt Jenkins CI Server
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to