Red Hat Bugzilla – Bug 1019331
Possible database connection leak in org.rhq.enterprise.server.content.ContentManagerBean.writeBlobOutToStream
Last modified: 2014-01-02 15:43:08 EST
Created attachment 812542 [details]
possible db leak reported by FindBugs
Description of problem: Findbugs static code analysis reports possible database connection leak in org.rhq.enterprise.server.content.ContentManagerBean.writeBlobOutToStream
line 2107 in ContentManagerBean
Version-Release number of selected component (if applicable): JON 3.2 ER3
Note: I am hunting possible database connection leaks in support of BZ
(OOM with JON 3.2 ... initial developer heap analysis from that issue shows possible connection leak. so here is 1 possible leak to investigate)
This is a DB connection leak, but the method is being called only from the test environment (itests-2) so it shouldn't be (unfortunately) related to bug 1018233.
time: 2013-10-15 16:42:16 +0200
author: Jirka Kremser - email@example.com
message: [BZ 1019331] - Possible database connection leak in
- closing the resultset, prepare statement and connection
properly in the finally block.
Moving to ON_QA for testing in the next build.