-
Notifications
You must be signed in to change notification settings - Fork 25.2k
HLRC: Add throttling for update & delete-by-query #33951
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
Conversation
This change adds throttling to the update-by-query and delete-by-query cases similar to throttling for reindex. This mostly means additional methods on the client class itself, since the request hits the same RestHandler, just with slightly different endpoints, and also the return values are similar. Also updating the docs to reflect this.
Pinging @elastic/es-core-infra |
rest-api-spec/src/main/resources/rest-api-spec/api/delete_by_query_rethrottle.json
Show resolved
Hide resolved
@nik9000 thanks, I addressed your comment |
@@ -855,6 +900,8 @@ public void testDeleteByQuery() throws IOException { | |||
.source(Collections.singletonMap("foo", 1), XContentType.JSON)) | |||
.add(new IndexRequest(sourceIndex, "type", "2") | |||
.source(Collections.singletonMap("foo", 2), XContentType.JSON)) | |||
.add(new IndexRequest(sourceIndex, "type", "3") | |||
.source(Collections.singletonMap("foo", 3), XContentType.JSON)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You indent this differently than the thing above it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Non-intentional indenting indeed. As penance I now will have to repeat this rapidly a couple of times. And will change of course.
@nik9000 thanks for the review. I think I will not wait for another full CI run just because of the last re-indention commit but merge to master regardless. |
This change adds throttling to the update-by-query and delete-by-query cases similar to throttling for reindex. This mostly means additional methods on the client class itself, since the request hits the same RestHandler, just with slightly different endpoints, and also the return values are similar.
This change adds throttling to the update-by-query and delete-by-query cases similar to throttling for reindex. This mostly means additional methods on the client class itself, since the request hits the same RestHandler, just with slightly different endpoints, and also the return values are similar.
This change adds throttling to the update-by-query and delete-by-query cases
similar to throttling for reindex. This mostly means additional methods on the
client class itself, since the request hits the same RestHandler, just with
slightly different endpoints, and also the return values are similar.
Also updating the docs to reflect this.