Yair Zaslavsky has posted comments on this change.

Change subject: core: Support transactions for Quartz jobs
......................................................................


Patch Set 5:

(1 comment)

http://gerrit.ovirt.org/#/c/36370/5/backend/manager/modules/scheduler/src/main/java/org/ovirt/engine/core/utils/timer/JobWrapper.java
File 
backend/manager/modules/scheduler/src/main/java/org/ovirt/engine/core/utils/timer/JobWrapper.java:

Line 42:             final Object instance = 
paramsMap.get(SchedulerUtilQuartzImpl.RUNNABLE_INSTANCE);
Line 43:             final Object[] methodParams = (Object[]) 
paramsMap.get(SchedulerUtilQuartzImpl.RUN_METHOD_PARAM);
Line 44:             String methodKey = 
getMethodKey(instance.getClass().getName(), methodName);
Line 45:             final Method methodToRun;
Line 46:             if (!cachedMethods.containsKey(methodKey)) {
Please consider using a concurrent map here..
Line 47:                 synchronized (cachedMethods) {
Line 48:                     if (cachedMethods.containsKey(methodKey)) {
Line 49:                         methodToRun = cachedMethods.get(methodKey);
Line 50:                     } else {


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

Gerrit-MessageType: comment
Gerrit-Change-Id: I7eb67e6aeef9080b5647cb84b1cf701c720ce29d
Gerrit-PatchSet: 5
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Liran Zelkha <[email protected]>
Gerrit-Reviewer: Moti Asayag <[email protected]>
Gerrit-Reviewer: Yair Zaslavsky <[email protected]>
Gerrit-Reviewer: [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

Reply via email to