-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
BulkRequest Handling on Failure #666
Comments
Okay, I see. This looks a bit like we need to be able to use configurable backoff/retries for Bulk API as well (just like Scroll API). With regards to your questions:
|
This commit backports the `PerformRequestOptions` structure from v6 and introduces `PerformRequestWithOptions`, which allows us to extend the list of parameters passed when executing a HTTP request. This change allows us to now also pass a custom `Retrier` per request, which we allow for Scroll API and Bulk API via `Retrier(...)` on the service respectively. Backported from d2219c2. See also #666 and #610
I just released 5.0.60 and 6.1.1 which both allow to set a per-request Retrier (with configurable Backoff). For now, only Bulk API and Scroll API make use of that. Use Have you looked into the 3rd comment above? Are you able to create a test to reproduce the problem? |
Closing for inactivity. Let me know if I can do anything, and I'll re-open. |
Which version of Elastic are you using?
[x] elastic.v5 (for Elasticsearch 5.x)
v5.0.30
Please describe the actual behavior
When some bulk request fail:
The retry is happening forever. In this case, since the record is having an incorrect index and type, this never succeeds (of course, this shall(should) not happen in the production env)
Please describe the expected behavior
and I'm not seeing any
Failed
prints. So how to find which of these 14 were the real failures.Any steps to reproduce the behavior?
One of my teammate had an issue during his development. So for testing purpose, I gave an incorrect type for certain records and incorrect index for some of them and added them to the bulk.
The text was updated successfully, but these errors were encountered: