[
http://opensource.atlassian.com/projects/hibernate/browse/HSEARCH-178?pag...
]
Stephane Epardaud commented on HSEARCH-178:
-------------------------------------------
Actually I get hit by this too and it's not related to transactions for me, and from
what I understand from the description in HHH-2763:
The problem stems from HS (and apparently others like BV, Envers and just anyone) causing
lazy-loaded collections to be initialised and loaded during flush, which the hibernate
core team seems to say it's not allowed. Even Emmanuel says it should not be done in
HHH-1725. But combinations of @IndexedEmbedded and @ContainedIn cause such lazy
collections to be initialised by HS (and in my opinion it is normal). This happens during
flush, which calls the FullTextIndexEventListener which builds the Document while loading
the lazy-loaded collections.
Later on, flush breaks because of those newly loaded lazy collections.
How is it resolved in 3.1?
Out of transaction work causes collection lazy loading to throw
AssertionFailure
--------------------------------------------------------------------------------
Key: HSEARCH-178
URL:
http://opensource.atlassian.com/projects/hibernate/browse/HSEARCH-178
Project: Hibernate Search
Issue Type: Bug
Components: engine
Affects Versions: 3.1.0.GA
Environment:
http://forum.hibernate.org/viewtopic.php?p=2381840
Reporter: Emmanuel Bernard
Assignee: Sanne Grinovero
Fix For: 3.1.1, 3.2.0
Attachments: TestCase-HSEARCH-178.patch
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://opensource.atlassian.com/projects/hibernate/secure/Administrators....
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira