BaseCoreFunctionalTestCase#rebuildSessionFactory() not releasing sessions

Description

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.

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

Assignee

Reporter

Labels

Original estimate

Time tracking

No time logged1h remaining

Fix versions

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