Allow optype CREATE for append-only indexing operations#47169
Merged
ywelsch merged 8 commits intoelastic:masterfrom Sep 30, 2019
Merged
Allow optype CREATE for append-only indexing operations#47169ywelsch merged 8 commits intoelastic:masterfrom
ywelsch merged 8 commits intoelastic:masterfrom
Conversation
Collaborator
|
Pinging @elastic/es-distributed |
Contributor
Author
|
@elasticmachine run elasticsearch-ci/2 |
Contributor
Author
|
@elasticmachine run elasticsearch-ci/default-distro |
Contributor
henningandersen
left a comment
There was a problem hiding this comment.
This is looking good already. I left a number of smaller comments to consider and/or address.
ywelsch
commented
Sep 30, 2019
henningandersen
approved these changes
Sep 30, 2019
Contributor
henningandersen
left a comment
There was a problem hiding this comment.
LGTM.
I think we should hold off on backporting until we have ensured that the engine properly handles op_type create requests with auto-id.
ywelsch
added a commit
that referenced
this pull request
Oct 1, 2019
ywelsch
added a commit
that referenced
this pull request
Oct 1, 2019
ywelsch
added a commit
that referenced
this pull request
Oct 1, 2019
ywelsch
added a commit
that referenced
this pull request
Oct 1, 2019
Adds support for handling auto-id requests with optype CREATE. Also simplifies the code handling this by using the standard indexing path when dealing with possible retry conflicts. Relates #47169
ywelsch
added a commit
to ywelsch/elasticsearch
that referenced
this pull request
Oct 2, 2019
Bulk requests currently do not allow adding "create" actions with auto-generated IDs. This commit allows using the optype CREATE for append-only indexing operations. This is mainly the user facing aspect of it.
ywelsch
added a commit
to ywelsch/elasticsearch
that referenced
this pull request
Oct 2, 2019
Adds support for handling auto-id requests with optype CREATE. Also simplifies the code handling this by using the standard indexing path when dealing with possible retry conflicts. Relates elastic#47169
ywelsch
added a commit
that referenced
this pull request
Oct 2, 2019
Bulk requests currently do not allow adding "create" actions with auto-generated IDs. This commit allows using the optype CREATE for append-only indexing operations. This is mainly the user facing aspect of it.
ywelsch
added a commit
that referenced
this pull request
Oct 2, 2019
Adds support for handling auto-id requests with optype CREATE. Also simplifies the code handling this by using the standard indexing path when dealing with possible retry conflicts. Relates #47169
24 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Bulk requests currently do not allow adding "create" actions with auto-generated IDs. This PR allows using the optype CREATE for append-only indexing operations. This is mainly the user-facing aspect of it. Follow-ups will include:
POST index/_docshould be the optype CREATE.