Liron Ar has posted comments on this change. Change subject: core: Execute clear tasks with new thread. ......................................................................
Patch Set 1: (2 comments) http://gerrit.ovirt.org/#/c/23724/1//COMMIT_MSG Commit Message: Line 7: core: Execute clear tasks with new thread. Line 8: Line 9: clearAsyncTasksWithOutVdsmId is executed at the finally step when Line 10: executing a vdc command. Line 11: If the execute phase encountered a problem, the engine roll backs the transaction the transaction is set to "rollback only", that's the term that should be used here. Line 12: and we can not use it any more. Line 13: Since the clearAsyncTasksWithOutVdsmId uses calls to the DB, the engine Line 14: throws a non-transaction exception, and the original exception does not Line 15: flow to the user. Line 10: executing a vdc command. Line 11: If the execute phase encountered a problem, the engine roll backs the transaction Line 12: and we can not use it any more. Line 13: Since the clearAsyncTasksWithOutVdsmId uses calls to the DB, the engine Line 14: throws a non-transaction exception, and the original exception does not the exception should be TransactionSetRollbackOnly or something like that iirc Line 15: flow to the user. Line 16: Line 17: The proposed solution is to clear the async tasks with a new Line 18: transaction, so it will not be dependent on the related execute phase. -- To view, visit http://gerrit.ovirt.org/23724 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: comment Gerrit-Change-Id: I3434c2dbd605e741b2cfbbede8c4a120f21ca9fe Gerrit-PatchSet: 1 Gerrit-Project: ovirt-engine Gerrit-Branch: master Gerrit-Owner: Maor Lipchuk <[email protected]> Gerrit-Reviewer: Liron Ar <[email protected]> Gerrit-Reviewer: Maor Lipchuk <[email protected]> Gerrit-Reviewer: Ravi Nori <[email protected]> Gerrit-Reviewer: Yair Zaslavsky <[email protected]> Gerrit-Reviewer: Yaniv Bronhaim <[email protected]> Gerrit-Reviewer: mooli tayer <[email protected]> Gerrit-Reviewer: oVirt Jenkins CI Server Gerrit-HasComments: Yes _______________________________________________ Engine-patches mailing list [email protected] http://lists.ovirt.org/mailman/listinfo/engine-patches
