BaseCoreFunctionalTestCase#rebuildSessionFactory() not releasing sessions
Description
Activity
Show:
Brett Meyer February 10, 2014 at 5:20 PM
Thanks. Oddly enough, already corrected in master, but not 4.2 or 4.3.
Thomas Jones-Low February 4, 2014 at 4:38 PM
Fixed
Details
Details
Assignee
Brett Meyer
Brett MeyerReporter
Thomas Jones-Low
Thomas Jones-LowLabels
Original estimate
Time tracking
No time logged1h remaining
Components
Affects versions
Priority
Created February 4, 2014 at 4:09 PM
Updated February 27, 2014 at 12:55 AM
Resolved February 10, 2014 at 5:20 PM
The rebuildSessionFactory method get called when a test fails, and the test system recreates the service and sessionFactory to ensure a clean setup for the next test.
The rebuildSessionFactory doesn't call serviceRegistry.destroy(), which in turn leaves a number of resources hanging around, including idle database connections, until the entire suite completes. Based upon review of logs this is between 150 and 200 service registries for the hibernate core test suite complete run.