OpenSearch/modules/reindex
Henning Andersen 8427d677e9
Reindex and friends fail nicely when max_docs < slices (#54901) (#57348)
When the parameter `max_docs` is less than `slices` in update_by_query,
delete_by_query or reindex API, `max_docs ` is set to 0 and we throw an
action_request_validation_exception with confused error message:
"maxDocs should be greater than 0...".
This change checks that whether `max_docs` is less than `slices` and
throw an illegal_argument_exception with clear message.

Relates to #52786.

Co-authored-by: bellengao <gbl_long@163.com>
2020-05-29 14:30:14 +02:00
..
src Reindex and friends fail nicely when max_docs < slices (#54901) (#57348) 2020-05-29 14:30:14 +02:00
build.gradle Simplify java home verification (#55635) 2020-04-27 12:43:32 -07:00