Ravi Nori has posted comments on this change. Change subject: engine : Command Executor should persist command before submitting to threadpool ......................................................................
Patch Set 1: (1 comment) http://gerrit.ovirt.org/#/c/29219/1/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/tasks/CommandExecutor.java File backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/tasks/CommandExecutor.java: Line 111: Line 112: public Future<VdcReturnValueBase> executeAsyncCommand(final VdcActionType actionType, Line 113: final VdcActionParametersBase parameters) { Line 114: final CommandBase<?> command = CommandsFactory.createCommand(actionType, parameters); Line 115: command.persistCommand(command.getParameters().getParentCommand(), true); > Hi Ravi I see your point How about we catch RejectedExecutionException when submitting the job. On the exception we set the status to a new state CommandStatus.REJECTED and let the quartz job resubmit the command on next timer interval. This is just a modification of your idea, we are still using the database and a thread to submit only rejected jobs. What do you think? Line 116: return executor.submit(new Callable<VdcReturnValueBase>() { Line 117: Line 118: @Override Line 119: public VdcReturnValueBase call() throws Exception { -- To view, visit http://gerrit.ovirt.org/29219 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: comment Gerrit-Change-Id: I4d510836dc822a95198dc1db4a4f74206466f0c9 Gerrit-PatchSet: 1 Gerrit-Project: ovirt-engine Gerrit-Branch: master Gerrit-Owner: Ravi Nori <rn...@redhat.com> Gerrit-Reviewer: Arik Hadas <aha...@redhat.com> Gerrit-Reviewer: Oved Ourfali <oourf...@redhat.com> Gerrit-Reviewer: Ravi Nori <rn...@redhat.com> Gerrit-Reviewer: Yair Zaslavsky <yzasl...@redhat.com> Gerrit-Reviewer: automat...@ovirt.org Gerrit-Reviewer: oVirt Jenkins CI Server Gerrit-HasComments: Yes _______________________________________________ Engine-patches mailing list Engine-patches@ovirt.org http://lists.ovirt.org/mailman/listinfo/engine-patches