[
http://opensource.atlassian.com/projects/hibernate/browse/HSEARCH-1030?pa...
]
Laurent Almeras edited comment on HSEARCH-1030 at 1/7/12 4:19 PM:
------------------------------------------------------------------
I wrote a minimal test case based on current hibernate-search tree :
https://github.com/lalmeras/hibernate-search/tree/HSEARCH-1030
Test class is called
org.hibernate.search.test.embedded.fieldoncollection.LazyIndirectCollectionBridgeReindexTest.
When launched :
* created entity is not found after reindex whereas it is found just before
* during reindex, a LazyException is thrown and interrupts the whole reindexation
process
was (Author: lalmeras):
I wrote a minimal test case against current hibernate-search tree :
https://github.com/lalmeras/hibernate-search/tree/HSEARCH-1030
Test class is
org.hibernate.search.test.embedded.fieldoncollection.LazyIndirectCollectionBridgeReindexTest.
When launched :
* created entity is not found after index whereas it is found just before
* during reindex, a LazyException is thrown and interrupt the whole reindexation process
Reindexing embedded Collection FieldBridge throws a
LazyInitializationException and stop reindexation
-----------------------------------------------------------------------------------------------------
Key: HSEARCH-1030
URL:
http://opensource.atlassian.com/projects/hibernate/browse/HSEARCH-1030
Project: Hibernate Search
Issue Type: Bug
Environment: Hibernate Search 4.0
Fedora 16
JVM Java Sun (build 1.6.0_29-b11) 64bits
Reporter: Laurent Almeras
When an entity owns an @IndexedEmbedded property which points to an CollectionBridge,
then mass-reindex throws an LazyInitializationException and stop the whole class reindex.
I investigate the issue, and it appears that document-builder thread only initialize
first level collections, and not the 2-level depth collections indexed with a
CollectionBridge.
See
https://forums.hibernate.org/viewtopic.php?f=9&t=1013886&sid=a765...
--
This message is automatically generated by JIRA.
For more information on JIRA, see:
http://www.atlassian.com/software/jira