Omer Frenkel has posted comments on this change.

Change subject: engine: Log detection of orphan gluster tasks
......................................................................


Patch Set 3:

(1 comment)

looks ok, minor comment/suggestion

....................................................
File 
backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/gluster/GlusterTasksSyncJob.java
Line 347:                 values.put(GlusterConstants.CLUSTER, vol == null ? "" 
:vol.getVdsGroupName());
Line 348:                 values.put(GlusterConstants.VOLUME, vol == null ? "" 
: vol.getName());
Line 349:                 values.put(GlusterConstants.JOB_STATUS, 
JobExecutionStatus.UNKNOWN.toString());
Line 350:                 values.put(GlusterConstants.JOB_INFO, " ");
Line 351:                 
step.setDescription(ExecutionMessageDirector.resolveStepMessage(step.getStepType(),
 values));
looks like you could create the values map once and re-use it for all steps, 
assuming resolveStepMessage method doesn't change the map. what do you think?
Line 352:                 getGlusterTaskUtils().endStepJob(step);
Line 353:                 if (vol != null) {
Line 354:                     logTaskStoppedFromCLI(step, vol);
Line 355:                 }


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

Gerrit-MessageType: comment
Gerrit-Change-Id: Ia9cc4658dc4ed5700ce93463f4480d65e7d71c12
Gerrit-PatchSet: 3
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Sahina Bose <sab...@redhat.com>
Gerrit-Reviewer: Kanagaraj M <kmayi...@redhat.com>
Gerrit-Reviewer: Omer Frenkel <ofren...@redhat.com>
Gerrit-Reviewer: Ramesh N <rnach...@redhat.com>
Gerrit-Reviewer: Sahina Bose <sab...@redhat.com>
Gerrit-Reviewer: Shubhendu Tripathi <shtri...@redhat.com>
Gerrit-Reviewer: Yair Zaslavsky <yzasl...@redhat.com>
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

Reply via email to