OpenSearch/modules
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
..
aggs-matrix-stats Expose agg usage in Feature Usage API (#55732) (#56048) 2020-04-30 12:53:36 -04:00
analysis-common Add `max_token_length` setting to the CharGroupTokenizer (#56860) 2020-05-20 14:28:40 +02:00
geo Add geo_shape mapper supporting doc-values in Spatial Plugin (#55037) (#55500) 2020-04-22 08:12:54 -07:00
ingest-common Backports for _source bug fix in scripting (#57068) 2020-05-21 17:07:38 -07:00
ingest-geoip Upgrade to Jackson 2.10.4 (#56188) 2020-05-06 17:20:23 -04:00
ingest-user-agent Always use deprecateAndMaybeLog for deprecation warnings (#55319) 2020-04-23 09:20:54 +01:00
kibana Reintroduce system index APIs for Kibana (#54935) 2020-04-08 09:08:49 -06:00
lang-expression Update Lucene version to 8.6.0-snapshot-9d6c738ffce (#57024) 2020-05-21 11:28:16 +01:00
lang-mustache [7.x] Rename template V2 classes to ComposableTemplate (#57183) (#57232) 2020-05-27 11:01:59 -06:00
lang-painless Backports for _source bug fix in scripting (#57068) 2020-05-21 17:07:38 -07:00
mapper-extras Remove Mapper.updateFieldType() (#57151) 2020-05-27 09:21:24 +01:00
parent-join Remove Mapper.updateFieldType() (#57151) 2020-05-27 09:21:24 +01:00
percolator Remove Mapper.updateFieldType() (#57151) 2020-05-27 09:21:24 +01:00
rank-eval [7.x] Lazy test cluster module and plugins (#54852) (#55087) 2020-04-13 10:53:35 -05:00
reindex Reindex and friends fail nicely when max_docs < slices (#54901) (#57348) 2020-05-29 14:30:14 +02:00
repository-url Rename MetaData to Metadata in all of the places (#54519) 2020-03-31 17:24:38 -04:00
systemd Encapsulate systemd extender 2020-04-20 21:17:42 -04:00
tasks Reintroduce system index APIs for Kibana (#54935) 2020-04-08 09:08:49 -06:00
transport-netty4 Release HTTP Request Body Earlier (#57094) (#57110) 2020-05-25 13:00:19 +02:00
build.gradle Apply 2-space indent to all gradle scripts (#49071) 2019-11-14 11:01:23 +00:00