Enabling AvailableSettings.ENABLE_LAZY_LOAD_NO_TRANS results in leaking DB-connections

Description

When enabling ENABLE_LAZY_LOAD_NO_TRANS it seems Hibernate doesn't close the SQL-Connection proparly resulting in connection-pool starvation.

I haven't got a test-case yet but I've confirmed the behavior in two separate environments. Will provide a test-case if necessary.

Environment

Tomcat, Spring-configured, using Tomcat's connection-pool referenced from Spring using JNDI.

Status

Assignee

Steve Ebersole

Reporter

Andreas Joseph Krogh

Fix versions

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

Affirmative

Pull Request

None

backportDecision

None

Components

Affects versions

4.1.6

Priority

Major
Configure