-
Notifications
You must be signed in to change notification settings - Fork 1.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
[Type removal] Ignore _type field in bulk request #3504
Conversation
Signed-off-by: Suraj Singh <surajrider@gmail.com>
Gradle check has test failures internally but reported succeeded in the end. Opened #3506 All failures belongs to
|
start gradle check |
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! Thanks for adding the new bulk-with-deprecated-types test.
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.
Just noticed this is going directly in the 2.0 branch. Let's first commit this to 2.x and backport to 2.0. We expect to have a better fix for future 2.x minor releases but I'm not sure that's going to come before the 2.1 release.
Thanks @nknize for the review. Actually, I have created 2.x PR. There were conflicting changes in 2.0 and 2.x and hence created separate PRs. |
oic... looks like a type removal PR wasn't backported to 2.0 hence the conflicts. |
…-project#3504)" This reverts commit 5bd7236.
* Revert "Revert removal of typed end-points for bulk, search, index APIs (#3524) (#3528)" This reverts commit fc8803f. * Revert "[Type removal] Ignore _type field in bulk request (#3504)" This reverts commit 5bd7236. Signed-off-by: Suraj Singh <surajrider@gmail.com> Signed-off-by: Nicholas Walter Knize <nknize@apache.org>
Signed-off-by: Suraj Singh surajrider@gmail.com
Description
Don't fail bulk request on _type field in bulk request. This change reduces the friction with external clients which still uses _type field in bulk requests. The change include creating bulk request parser with errorOnType set to false to accommodate _type params. It also add some of test cases previously removed in #2215 to verify the assumption
Related
#2215
Issues Resolved
#3484
Testing
Request
Before change
After fix
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.