AbstractMultiTenantConnectionProvider never closes connections causing resource exhaustion

Description

In org.hibernate.service.jdbc.connections.spi.AbstractMultiTenantConnectionProvider the call to releaseConnection(String tenantIdentifier, Connection connection) does not actually close the connection. The method was probably copied from getConnection(String tenantIdentifier) resulting in this code:

Which opens a new connection anytime a connection is supposed to be closed and thus quickly exhausts all available connections.

Activity

Steve EbersoleFebruary 6, 2012 at 3:25 PM

But, I messed up with labeling it under HHH-5697; I did not notice its fix-for version. The exact commit that addressed this is 3ff0288da5f7d74f9fe964712a7ae869aee69bfd

https://github.com/hibernate/hibernate-orm/commit/3ff0288da5f7d74f9fe964712a7ae869aee69bfd

Let's use this issue for change-log tracking

Steve EbersoleFebruary 6, 2012 at 3:20 PM

Already resolved as part of

Fixed

Details

Assignee

Reporter

Labels

Components

Fix versions

Affects versions

Priority

Created February 6, 2012 at 11:38 AM
Updated May 23, 2012 at 4:18 PM
Resolved February 6, 2012 at 3:25 PM