Issue Details (XML | Word | Printable)

Key: HHH-2936
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Gail Badner
Reporter: Anders Wallgren
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Hibernate Core

Unclear warning in the logs from LoadContexts.cleanup: fail-safe cleanup (collections)

Created: 07/Nov/07 09:02 PM   Updated: 11/Nov/07 01:29 PM
Component/s: core
Affects Version/s: 3.2.5
Fix Version/s: None

Time Tracking:
Not Specified

Environment: MySQL 5.0
Issue Links:
Fix
 
Relates
 


 Description  « Hide
We're seeing warning in our logs from this piece of code, but it's unclear from the warning message whether this indicates a problem in my code or in hibernate itself.

The error message should be clarified.

 All   Comments   Work Log   Change History   FishEye      Sort Order: Ascending order - Click to sort in descending order
Anders Wallgren added a comment - 07/Nov/07 09:02 PM
Example message: {code}2007-11-06T14:59:32.056 | WARN | Api-2 | import#chronic3.export.gz | LoadContexts | fail-safe cleanup (collections) : org.hibernate.engine.loading.CollectionLoadContext@1dc9666<rs=com.mchange.v2.c3p0.impl.NewProxyResultSet@1be70e1>
 

 Description Seeing these in the logs - need to figure out what's going on.
2007-11-06T14:59:32.056 | WARN | Api-2 | import#chronic3.export.gz | LoadContexts | fail-safe cleanup (collections) : org.hibernate.engine.loading.CollectionLoadContext@1dc9666<rs=com.mchange.v2.c3p0.impl.NewProxyResultSet@1be70e1> Show »

{code}

Gail Badner added a comment - 08/Nov/07 01:02 AM
This warning is due to a hibernate bug.

The fix for HHH-2631 attempted to remove resultsets when no longer needed. One case that was missed is when a CollectionLoadContext is created for an empty ResultSet, but is not registered with LoadContexts (HHH-2795), which results in the resultset being removed from LoadContexts by the fail-safe cleanup and the warning. Empty resultsets are closed when no longer needed, but are not GC'ed until removed in the fail-safe cleanup

This should not cause problems unless there are a lot of empty resultsets created in a session.

Diego Plentz added a comment - 09/Nov/07 06:59 PM
Hey Gail,

If this is fixed by HHH-2795, and it is already fixed, we can close this too, right? ;-)

Gail Badner added a comment - 11/Nov/07 01:29 PM
Yes, this can be closed.