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 https://bugzilla.redhat.com/show_bug.cgi?id=1018233 (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. branch: release#jon3.2.x link: http://git.fedorahosted.org/cgit/rhq/rhq.git/commit/?id=80359d799 time: 2013-10-15 16:42:16 +0200 commit: 80359d7992b0a46dc0b8adcf6f42c2b551b8966f author: Jirka Kremser - jkremser message: [BZ 1019331] - Possible database connection leak in org.rhq.enterprise.server.content.ContentManagerBean.writeBlobOutToStream - closing the resultset, prepare statement and connection properly in the finally block.
Moving to ON_QA for testing in the next build.