Test the Hibernate Search - JSR-352 integration with OGM

Description

The Hibernate Search - JSR-352 integration provides a mass indexing batch processing job for use with JSR-352 runtimes. Essentially it replaces the MassIndexer and adds a few interesting feature like stop/resume and resume after failure.

Currently it's known to work with JBatch (the reference implementation) and JBeret (the WildFly implementation). It is known not to work with Spring Batch: HSEARCH-2692.

The integration does not work with OGM for now because it relies on criteria and org.hibernate.query.Query#scroll(org.hibernate.ScrollMode), which are not supported in OGM yet.

When OGM supports those, we might want to have a look to see if everything works as expected. In particular there's a bit of hacking involved in the JSR-352 integration to retrieve the session, which might not work perfectly well with OGM.

Examples of tests can be found in Hibernate Search:

Note that tests require additional configuration. In particular, the Java SE tests requires to set up JBatch (have a look at the POM and resource files). You should probably avoid JBeret SE as all of its dependencies have the "provided" scope, which is a nightmare.

Environment

None

Assignee

Unassigned

Reporter

Yoann Rodière

Labels

None

Feedback Requested

None

Feedback Requested By

None

backPortable

None

Suitable for new contributors

None

Pull Request

None

backportDecision

None

backportReEvaluate

None

Components

Fix versions

Priority

Minor
Configure