java.lang.IndexOutOfBoundsException when an Elasticsearch bulk work fails

Description

It looks like the class org.hibernate.search.backend.elasticsearch.work.impl.BulkWork assumes the bulk work always succeeds, leading to the creation of an empty list of result items when it fails. Consequently, if a bulk work fails, result extraction will try to access a result item that doesn't exist and trigger an IndexOutOfBoundsException.

Environment

None

Assignee

Yoann Rodière

Reporter

Yoann Rodière

Labels

None

Suitable for new contributors

None

Feedback Requested

None

Components

Fix versions

Priority

Major
Configure