Martin Sivák has posted comments on this change. Change subject: vdsm: Reboot capability for VM ......................................................................
Patch Set 23: Dan: IIRC the checkSuccess approach was just a convenient way of doing this without having to pass the callback result between threads. And the check was the same for the whole chain so we avoided a slight code duplication as well. But if we are splitting the patch into a general utility CallbackChain class and VmPowerDown that uses it, then having separate and possibly different check for each step also makes sense. My comments were actually meant as a summary (that is why I gave no score) of all the complaints I heard compiled into a reasonable form. I would personally still prefer much more declarative approach. Martin will be back at noon so he will probably add comments later. Btw, how do you unittest threading class? Integration/functional tests are quite possible, but mocking thread behaviour to achieve unittest isolation? I would love to see a unittest for thread class, but I have not found any satisfactory way of doing it so far. -- To view, visit http://gerrit.ovirt.org/15829 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: comment Gerrit-Change-Id: I12737e363a80679ffb1db55f14eaee158312d7da Gerrit-PatchSet: 23 Gerrit-Project: vdsm Gerrit-Branch: master Gerrit-Owner: Martin Betak <[email protected]> Gerrit-Reviewer: Antoni Segura Puimedon <[email protected]> Gerrit-Reviewer: Dan Kenigsberg <[email protected]> Gerrit-Reviewer: Federico Simoncelli <[email protected]> Gerrit-Reviewer: Giuseppe Vallarelli <[email protected]> Gerrit-Reviewer: Martin Betak <[email protected]> Gerrit-Reviewer: Martin Sivák <[email protected]> Gerrit-Reviewer: Michal Skrivanek <[email protected]> Gerrit-Reviewer: Omer Frenkel <[email protected]> Gerrit-Reviewer: Peter V. Saveliev <[email protected]> Gerrit-Reviewer: Vinzenz Feenstra <[email protected]> Gerrit-Reviewer: oVirt Jenkins CI Server Gerrit-HasComments: No _______________________________________________ vdsm-patches mailing list [email protected] https://lists.fedorahosted.org/mailman/listinfo/vdsm-patches
