Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reindex should retry on search failures
This uses the same backoff policy we use for bulk and just retries until the request isn't rejected. Instead of `{"retries": 12}` in the response to count retries this now looks like `{"retries": {"bulk": 12", "search": 1}`. Closes #18059
- Loading branch information
Showing
22 changed files
with
518 additions
and
109 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
[[breaking_50_document_api_changes]] | ||
=== Document API changes | ||
|
||
==== Reindex and Update By Query | ||
Before 5.0.0 `_reindex` and `_update_by_query` only retried bulk failures so | ||
they used the following response format: | ||
|
||
[source,js] | ||
---------------------- | ||
{ | ||
... | ||
"retries": 10 | ||
... | ||
} | ||
---------------------- | ||
|
||
Where `retries` counts the number of bulk retries. Now they retry on search | ||
failures as well and use this response format: | ||
|
||
[source,js] | ||
---------------------- | ||
{ | ||
... | ||
"retries": { | ||
"bulk": 10, | ||
"search": 1 | ||
} | ||
... | ||
} | ||
---------------------- | ||
|
||
Where `bulk` counts the number of bulk retries and `search` counts the number | ||
of search retries. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.