Michal Skrivanek has posted comments on this change.

Change subject: Live Merge: fix race between libvirt event and vm stats
......................................................................


Patch Set 2:

(1 comment)

http://gerrit.ovirt.org/#/c/29309/2/vdsm/virt/vm.py
File vdsm/virt/vm.py:

Line 5456:         jobs = {}
Line 5457:         # We need to take the jobs lock here to ensure that we don't 
race with
Line 5458:         # another call to merge() where the job has been recorded 
but not yet
Line 5459:         # started.
Line 5460:         with self._jobsLock:
> You're right, the main issue is engine polling on the stats and seeing no v
Well, it is a different approach from other commands.
Even with your current design, how do you ensure that you report anything if 
the job finishes before you even get to the end of merge() and call the first 
stats cycle?
Line 5461:             for job in self.conf['_blockJobs'].values()[:]:
Line 5462:                 jobID = job['jobID']
Line 5463:                 drive = self._findDriveByUUIDs(job['disk'])
Line 5464: 


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

Gerrit-MessageType: comment
Gerrit-Change-Id: Ic0314a39428419bb21bc579f07a92227d5a7acff
Gerrit-PatchSet: 2
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Adam Litke <[email protected]>
Gerrit-Reviewer: Adam Litke <[email protected]>
Gerrit-Reviewer: Dan Kenigsberg <[email protected]>
Gerrit-Reviewer: Federico Simoncelli <[email protected]>
Gerrit-Reviewer: Francesco Romani <[email protected]>
Gerrit-Reviewer: Greg Padgett <[email protected]>
Gerrit-Reviewer: Michal Skrivanek <[email protected]>
Gerrit-Reviewer: [email protected]
Gerrit-Reviewer: oVirt Jenkins CI Server
Gerrit-HasComments: Yes
_______________________________________________
vdsm-patches mailing list
[email protected]
https://lists.fedorahosted.org/mailman/listinfo/vdsm-patches

Reply via email to