Dan Kenigsberg has posted comments on this change.

Change subject: getAllTasksList\Status with spUUID retrieves info only if host 
is the SPM
......................................................................


Patch Set 13: I would prefer that you didn't submit this

(1 inline comment)

....................................................
File vdsm/storage/hsm.py
Line 2048:         """
Line 2049:         # getSharedLock(tasksResource...)
Line 2050:         if spUUID:
Line 2051:             # Currently pool tasks can only be retrieved by SPM
Line 2052:             self.validateSPM(spUUID)
Yaniv, this may have already been discussed, but isn't this "first validate, 
then find tasks" pattern raceful?

Surely, it is less horrible than what we currently have, but still, spm role 
may be lost just after the validation, leaving you with the very same bug.
Line 2053:         allTasksStatus = self.taskMng.getAllTasksStatuses("spm")
Line 2054:         return dict(allTasksStatus=allTasksStatus)
Line 2055: 
Line 2056:     @public


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

Gerrit-MessageType: comment
Gerrit-Change-Id: I4cbc11c924f0bd078749fea26d79b39c0dd48094
Gerrit-PatchSet: 13
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Yaniv Bronhaim <[email protected]>
Gerrit-Reviewer: Ayal Baron <[email protected]>
Gerrit-Reviewer: Barak Azulay <[email protected]>
Gerrit-Reviewer: Dan Kenigsberg <[email protected]>
Gerrit-Reviewer: Daniel P. Berrange <[email protected]>
Gerrit-Reviewer: Eduardo <[email protected]>
Gerrit-Reviewer: Maor Lipchuk <[email protected]>
Gerrit-Reviewer: Saggi Mizrahi <[email protected]>
Gerrit-Reviewer: Shu Ming <[email protected]>
Gerrit-Reviewer: Yaniv Bronhaim <[email protected]>
Gerrit-Reviewer: oVirt Jenkins CI Server
_______________________________________________
vdsm-patches mailing list
[email protected]
https://lists.fedorahosted.org/mailman/listinfo/vdsm-patches

Reply via email to