Omer Frenkel has posted comments on this change.

Change subject: core: Persist all async task place holders
......................................................................


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

(2 inline comments)

....................................................
File 
backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/CommandBase.java
Line 1226:      * This method is called before executeAction and after 
checkCanDoAction
Line 1227:      * to insert the async task place holders for the child commands.
Line 1228:      */
Line 1229:     protected void insertAsyncTaskPlaceHolders() {
Line 1230:         TransactionSupport.executeInNewTransaction(new 
TransactionMethod<Void>() {
why new transaction? this will open a new transaction for each command in the 
chain, no?
Line 1231:             @Override
Line 1232:             public Void runInTransaction() {
Line 1233:                 Map<Guid, CommandBase<?>> childCommands = 
buildChildCommands();
Line 1234:                 for (CommandBase<?> command : 
childCommands.values()) {


Line 1259:      * @param runAsInternal
Line 1260:      * @param context
Line 1261:      * @return
Line 1262:      */
Line 1263:     protected CommandBase<?> constructCommand(VdcActionType 
actionType,
i dont see where this method (and runCommand) are used, but it doesn't feel 
right, commands should be created and executed only from the backend
Line 1264:             VdcActionParametersBase parameters,
Line 1265:             boolean runAsInternal,
Line 1266:             CommandContext context) {
Line 1267:         ExecutionHandler.evaluateCorrelationId(parameters);


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

Gerrit-MessageType: comment
Gerrit-Change-Id: I66628b98298ed1f500946889604ad906f0a68022
Gerrit-PatchSet: 2
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Ravi Nori <rn...@redhat.com>
Gerrit-Reviewer: Allon Mureinik <amure...@redhat.com>
Gerrit-Reviewer: Omer Frenkel <ofren...@redhat.com>
Gerrit-Reviewer: Ravi Nori <rn...@redhat.com>
Gerrit-Reviewer: Yair Zaslavsky <yzasl...@redhat.com>
Gerrit-Reviewer: oVirt Jenkins CI Server
_______________________________________________
Engine-patches mailing list
Engine-patches@ovirt.org
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to