Yair Zaslavsky has posted comments on this change.

Change subject: tools: DB connections improvement at notifier
......................................................................


Patch Set 3: (1 inline comment)

....................................................
File 
backend/manager/tools/engine-notifier/engine-notifier-service/src/main/java/org/ovirt/engine/core/notifier/NotificationService.java
Line 208:                 } catch (SQLException e) {
Line 209:                     log.error("Failed to release statement of 
event_audit_log_subscriber", e);
Line 210:                     throw e;
Line 211:                 }
Line 212:             }
Yes.
I just talked about it with Moti.
apache-commons-dbutils for example gives you closeQuietly for each one of these 
objects, but:
a. We don't want to add dependencies to it at this point.
b. Why not have single method  (or let's say, with some overloaded versions) to 
handle more than on object in single call? (let's put it in our utils).

I suggest to send a separate patch for this.
Line 213:             if (connection != null) {
Line 214:                 try {
Line 215:                     connection.close();
Line 216:                 } catch (SQLException e) {


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

Gerrit-MessageType: comment
Gerrit-Change-Id: I54fb540ee52255f017933b000b9b509c2e056122
Gerrit-PatchSet: 3
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Yair Zaslavsky <yzasl...@redhat.com>
Gerrit-Reviewer: Moti Asayag <masa...@redhat.com>
Gerrit-Reviewer: Ravi Nori <rn...@redhat.com>
Gerrit-Reviewer: Yair Zaslavsky <yzasl...@redhat.com>
_______________________________________________
Engine-patches mailing list
Engine-patches@ovirt.org
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to