You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Reindex-from-remote: Fail on manual slicing param (#137275)
When the `_reindex` API is used with a remote source (`source.remote`
is set in the request body), neither manual slicing (via
`source.slice` in the request body) nor automatic slicing (via the
`slices` URL parameter) are supported.
Prior to this change, on sending a request with a remote source and
manual slicing enabled, the manual slicing specification would be
ignored, and the complete source would be reindexed without
slicing. After this change, the API will return a response with an
HTTP code 400 (Bad Request) instead.
The new behaviour more correctly indicates to the user that the
requested functionality is not available, rather than silently
ignoring part of their request.
Note that:
- Prior to this change, sending a request with a remote source and
*automatic* slicing enabled already resulted in the correct 400
response.
- The
[docs](https://www.elastic.co/docs/reference/elasticsearch/rest-apis/reindex-indices#docs-reindex-slice)
already correctly stated "Reindexing from remote clusters does not
support manual or automatic slicing."
- As a drive-by, this change also adds a unit test for the validation
with the `slices` parameter set to `auto`. (Previously, only the
case where it was set to a number greater than 1 was tested.)
Closes#136269
0 commit comments