Skip to content
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

Reindex max_docs parameter name 7x #42942

Conversation

henningandersen
Copy link
Contributor

Previously, a reindex request had two different size specifications in the body:

  • Outer level, determining the maximum documents to process
  • Inside the source element, determining the scroll/batch size.

The outer level size has now been renamed to max_docs to
avoid confusion and clarify its semantics, with backwards compatibility and
deprecation warnings for using size.
Similarly, the size parameter has been renamed to max_docs for
update/delete-by-query to keep the 3 interfaces consistent.

Finally, all 3 endpoints now support max_docs in both body and URL.

Relates #24344

Backport of #41894

henningandersen and others added 2 commits June 6, 2019 16:03
Previously, a reindex request had two different size specifications in the body:
* Outer level, determining the maximum documents to process
* Inside the source element, determining the scroll/batch size.

The outer level size has now been renamed to max_docs to
avoid confusion and clarify its semantics, with backwards compatibility and
deprecation warnings for using size.
Similarly, the size parameter has been renamed to max_docs for
update/delete-by-query to keep the 3 interfaces consistent.

Finally, all 3 endpoints now support max_docs in both body and URL.

Relates elastic#24344
@henningandersen henningandersen added >enhancement backport :Distributed Indexing/Reindex Issues relating to reindex that are not caused by issues further down v7.3.0 labels Jun 6, 2019
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-distributed

@henningandersen
Copy link
Contributor Author

ci/1 failed with unrelated test failure, reported here: #42979
@elasticmachine run elasticsearch-ci/1

@henningandersen henningandersen merged commit dea935a into elastic:7.x Jun 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport :Distributed Indexing/Reindex Issues relating to reindex that are not caused by issues further down >enhancement v7.3.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants