Yair Zaslavsky has posted comments on this change.

Change subject: core: reduce compensation scope from hibernate command
......................................................................


Patch Set 5: (2 inline comments)

....................................................
File 
backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/CommandBase.java
Line 1288:     protected Guid 
createTaskInCurrentTransaction(AsyncTaskCreationInfo asyncTaskCreationInfo,
Line 1289:             VdcActionType parentCommand,
Line 1290:             VdcObjectType entityType,
Line 1291:             Guid... entityIds) {
Line 1292:         return createTaskImpl(asyncTaskCreationInfo, parentCommand, 
null, entityType, entityIds);
minor question - why no description here?
Line 1293:     }
Line 1294: 
Line 1295:     /**
Line 1296:      * Use this method in order to create task in the 
AsyncTaskManager in a safe way. If you use this method within a


....................................................
File 
backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/HibernateVmCommand.java
Line 137:             if (!ret1.getSucceeded()) {
Line 138:                 return;
Line 139:             }
Line 140: 
Line 141:             Guid guid1 = TransactionSupport.executeInNewTransaction(
I would like you to look at Ravi's on creating tasks at db at the beginning of 
the command (if there are failures, we will erase them, and when we get vdsm 
task id, we will update it in db).
Do you see any issues with it, besides the fact you need to update the task, 
and not add it in db?
Look at the first 3 patches in the chain - 
http://gerrit.ovirt.org/#/c/14075/11
Line 142:                     new TransactionMethod<Guid>() {
Line 143:                         @Override
Line 144:                         public Guid runInTransaction() {
Line 145:                             
getCompensationContext().resetCompensation();


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

Gerrit-MessageType: comment
Gerrit-Change-Id: Iec46798fc6ea01ef6b0b4701e1af5ba616edf910
Gerrit-PatchSet: 5
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Arik Hadas <[email protected]>
Gerrit-Reviewer: Arik Hadas <[email protected]>
Gerrit-Reviewer: Liron Ar <[email protected]>
Gerrit-Reviewer: Michael Kublin <[email protected]>
Gerrit-Reviewer: Michal Skrivanek <[email protected]>
Gerrit-Reviewer: Omer Frenkel <[email protected]>
Gerrit-Reviewer: Roy Golan <[email protected]>
Gerrit-Reviewer: Yair Zaslavsky <[email protected]>
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to