Failure in some tests causes TS to hang infinitely

Description

Currently, this affects at least these tests:

  • FilterInheritanceTest on Sybase 16

  • InsertOrderingWithJoinedTableInheritance on Sybase 16

We need to make sure an unexpected exception doesn't lead to leaking an open Session, because such session causes a freeze when cleaning up the SessionFactory.

The cleanupTestData method of BaseNonConfigCoreFunctionalTestCase needs a similar change too.

The failures in mentioned tests are caused by HHH-11262, this issue's purpose is to be a workaround so that they don't hang the TS, they will still fail after this fix, if is not fixed.

Activity

Show:

Former userMarch 15, 2017 at 12:21 AM

Fixed in 5.1 branch as well.

Former userFebruary 16, 2017 at 6:19 AM

Fixed in master.

Jan MartiskaJanuary 30, 2017 at 2:49 PM

Commit in my branch with fix for 5.1 branch: https://github.com/jmartisk/hibernate-orm/commit/28ab06ae10bb84dc5e3b2a499f56eaff9a263f81
PR to master: https://github.com/hibernate/hibernate-orm/pull/1762

The commits for master and 5.1 are quite different. Gail, please could you take care of applying the 5.1 fix?

Fixed

Details

Assignee

Reporter

Components

Fix versions

Affects versions

Priority

Created January 30, 2017 at 1:54 PM
Updated March 15, 2017 at 12:34 AM
Resolved March 15, 2017 at 12:21 AM