Enable CollectionUpdateEventTest for Elasticsearch

Description

The test seems to fail for no particular reason when ran in a full test suite, while passing when executed as a single test...

Note: there are tests that should pass when this ticket is resolved, and that are currently disabled in the pom.xml of the Elasticsearch module. Those tests will be (or have been) outlined as part of HSEARCH-2390.

Activity

Yoann RodièreJanuary 9, 2017 at 6:06 PM

Actually the test also fails locally, but only when running the full test suite. When running the test alone, it passes just fine.

I investigated a bit and was able to spot a difference between the pass/fail cases. At some point we have this execution stack:

With these values in ActionQueue.executeActions(ExecutableList<E>):

The difference lies in org.hibernate.search.event.impl.FullTextIndexEventListener.processCollectionEvent(AbstractCollectionEvent): in the failing case, at line 255, the collection is not initialized and thus is ignored, while in the succeeding case it is initialized and thus is not ignored.

FullTextIndexEventListener.java, line 254

I don't know what to make of that information, though... I'll stop working on this for now, because it's getting really time-consuming.

Fixed

Details

Assignee

Reporter

Components

Sprint

Fix versions

Affects versions

Priority

Created October 11, 2016 at 11:00 AM
Updated September 13, 2017 at 10:15 PM
Resolved September 4, 2017 at 10:25 PM