I need to handle failures and retry for failures in Bulk Processor. BulkProcessor listener has afterBulk methods. For the below method, the response provides a way to extract failures for individual items but it doesn't provide a way to get the passed request. I don't have ID at the time of sending the request. Is there any way to extract the failed request from the BulkItemResponse?
public void afterBulk(long executionId, BulkRequest request, BulkResponse response)
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.