[hibernate-issues] [JIRA] (HSEARCH-3869) java.lang.IndexOutOfBoundsException when an Elasticsearch bulk work fails

Yoann Rodière (JIRA) jira at hibernate.atlassian.net
Wed Mar 25 08:49:50 EDT 2020


Yoann Rodière ( https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%3A58fa1ced-171a-4c00-97e8-5d70d442cc4b ) *created* an issue

Hibernate Search ( https://hibernate.atlassian.net/browse/HSEARCH?atlOrigin=eyJpIjoiMzVjZWU4MjYyYmM3NDUwODllMjhjMTUwNWUwNzAzNjMiLCJwIjoiaiJ9 ) / Bug ( https://hibernate.atlassian.net/browse/HSEARCH-3869?atlOrigin=eyJpIjoiMzVjZWU4MjYyYmM3NDUwODllMjhjMTUwNWUwNzAzNjMiLCJwIjoiaiJ9 ) HSEARCH-3869 ( https://hibernate.atlassian.net/browse/HSEARCH-3869?atlOrigin=eyJpIjoiMzVjZWU4MjYyYmM3NDUwODllMjhjMTUwNWUwNzAzNjMiLCJwIjoiaiJ9 ) java.lang.IndexOutOfBoundsException when an Elasticsearch bulk work fails ( https://hibernate.atlassian.net/browse/HSEARCH-3869?atlOrigin=eyJpIjoiMzVjZWU4MjYyYmM3NDUwODllMjhjMTUwNWUwNzAzNjMiLCJwIjoiaiJ9 )

Issue Type: Bug Assignee: Yoann Rodière ( https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%3A58fa1ced-171a-4c00-97e8-5d70d442cc4b ) Components: backend-elasticsearch Created: 25/Mar/2020 05:49 AM Fix Versions: 6.0.0.Beta-backlog-high-priority Priority: Major Reporter: Yoann Rodière ( https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%3A58fa1ced-171a-4c00-97e8-5d70d442cc4b )

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.

( https://hibernate.atlassian.net/browse/HSEARCH-3869#add-comment?atlOrigin=eyJpIjoiMzVjZWU4MjYyYmM3NDUwODllMjhjMTUwNWUwNzAzNjMiLCJwIjoiaiJ9 ) Add Comment ( https://hibernate.atlassian.net/browse/HSEARCH-3869#add-comment?atlOrigin=eyJpIjoiMzVjZWU4MjYyYmM3NDUwODllMjhjMTUwNWUwNzAzNjMiLCJwIjoiaiJ9 )

Get Jira notifications on your phone! Download the Jira Cloud app for Android ( https://play.google.com/store/apps/details?id=com.atlassian.android.jira.core&referrer=utm_source%3DNotificationLink%26utm_medium%3DEmail ) or iOS ( https://itunes.apple.com/app/apple-store/id1006972087?pt=696495&ct=EmailNotificationLink&mt=8 ) This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100122- sha1:092c6a7 )
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/hibernate-issues/attachments/20200325/367ef0e1/attachment-0001.html 


More information about the hibernate-issues mailing list