-
Notifications
You must be signed in to change notification settings - Fork 24.8k
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
[REST Compatible API] Reindex size field #69037
[REST Compatible API] Reindex size field #69037
Conversation
The commit elastic#43373 has removed outer level size field in version 7. This commit allows for the use of the size field in server ES8 using compatible REST API. relates elastic#51816
@@ -158,3 +159,19 @@ if (Os.isFamily(Os.FAMILY_WINDOWS)) { | |||
} | |||
} | |||
} | |||
|
|||
tasks.named("yamlRestCompatTest").configure { |
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.
a test to validate the change
./gradlew ':modules:reindex:yamlRestCompatTest' --tests "org.elasticsearch.index.reindex.ReindexClientYamlTestSuiteIT.test {yaml=reindex/30_search/Sorting and size combined}" -Dtests.security.manager=true -Dtests.locale=fi -Dtests.timezone=Navajo -Druntime.java=15
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.
LGTM, I like the surgical approach.
Suggested commit log:
For re-index requests, the outer most "size" field was deprecated and
renamed to "max_docs" in 7.x. With this commit, the "size" field will
remain available (but still deprecated) through out 8.x when REST API
compatibility is requested.
relates #51816
The commit #43373 has removed outer level size field in version 7.
This commit allows for the use of the size field in server ES8 using
compatible REST API.
relates #51816
This is a surgical approach with just adding a new field declaration to existing parser. A different - copying - approach is presented here #68355