Remove immediate operation retry after mapping update#38873
Merged
dakrone merged 1 commit intoelastic:masterfrom Feb 14, 2019
Merged
Remove immediate operation retry after mapping update#38873dakrone merged 1 commit intoelastic:masterfrom
dakrone merged 1 commit intoelastic:masterfrom
Conversation
Prior to this commit, when an indexing operation resulted in an `Engine.Result.Type.MAPPING_UPDATE_REQUIRED`, TransportShardBulkAction immediately retries the indexing operation to see if it succeeds. In the event that it succeeds the context does not wait until the mapping update has propagated through the cluster state before finishing the indexing. In some of our tests we rely on mappings being available as soon as they've been introduced in a document that indexed correctly. By removing the immediate retry we always wait for this to be the case. Resolves elastic#38428 Supercedes elastic#38579 Relates to elastic#38711
Collaborator
|
Pinging @elastic/es-distributed |
Member
Author
bleskes
approved these changes
Feb 14, 2019
Contributor
bleskes
left a comment
There was a problem hiding this comment.
LGTM. I can't think of any reason why not to do this and it's a good simplification. I'd like @ywelsch to sanity check this too.
PS. This doesn't guarantee that the cluster state is processed on all nodes when an indexing operation returns. You can still have a case where one node (that's not relevant for the indexing operation) didn't process the committed cluster state.
ywelsch
approved these changes
Feb 14, 2019
dakrone
added a commit
that referenced
this pull request
Feb 14, 2019
Prior to this commit, when an indexing operation resulted in an `Engine.Result.Type.MAPPING_UPDATE_REQUIRED`, TransportShardBulkAction immediately retries the indexing operation to see if it succeeds. In the event that it succeeds the context does not wait until the mapping update has propagated through the cluster state before finishing the indexing. In some of our tests we rely on mappings being available as soon as they've been introduced in a document that indexed correctly. By removing the immediate retry we always wait for this to be the case. Resolves #38428 Supercedes #38579 Relates to #38711
dakrone
added a commit
that referenced
this pull request
Feb 14, 2019
Prior to this commit, when an indexing operation resulted in an `Engine.Result.Type.MAPPING_UPDATE_REQUIRED`, TransportShardBulkAction immediately retries the indexing operation to see if it succeeds. In the event that it succeeds the context does not wait until the mapping update has propagated through the cluster state before finishing the indexing. In some of our tests we rely on mappings being available as soon as they've been introduced in a document that indexed correctly. By removing the immediate retry we always wait for this to be the case. Resolves #38428 Supercedes #38579 Relates to #38711
dakrone
added a commit
that referenced
this pull request
Feb 14, 2019
Prior to this commit, when an indexing operation resulted in an `Engine.Result.Type.MAPPING_UPDATE_REQUIRED`, TransportShardBulkAction immediately retries the indexing operation to see if it succeeds. In the event that it succeeds the context does not wait until the mapping update has propagated through the cluster state before finishing the indexing. In some of our tests we rely on mappings being available as soon as they've been introduced in a document that indexed correctly. By removing the immediate retry we always wait for this to be the case. Resolves #38428 Supercedes #38579 Relates to #38711
dakrone
added a commit
to dakrone/elasticsearch
that referenced
this pull request
Feb 14, 2019
This reverts commit b91e058. This should be fixed by elastic#38873
jasontedor
added a commit
to jasontedor/elasticsearch
that referenced
this pull request
Feb 14, 2019
* elastic/master: Remove immediate operation retry after mapping update (elastic#38873) Remove mentioning of types from bulk API docs (elastic#38896) SQL: change JDBC setup URL in the documentation (elastic#38564) Skip BWC tests in checkPart1 and checkPart2 (elastic#38730) Enable silent FollowersCheckerTest (elastic#38851) Update TESTING.asciidoc with platform specific instructions (elastic#38802) Use consistent view of realms for authentication (elastic#38815) Stabilize RareClusterState (elastic#38671) Increase Timeout in UnicastZenPingTests (elastic#38893) Do not recommend installing vagrant-winrm elastic#38887 _cat/indices with Security, hide names when wildcard (elastic#38824) SQL: fall back to using the field name for column label (elastic#38842) Fix LocalIndexFollowingIT#testRemoveRemoteConnection() test (elastic#38709) Remove joda time mentions in documentation (elastic#38720) Add enabled status for token and api key service (elastic#38687)
pull bot
pushed a commit
to scher200/elasticsearch
that referenced
this pull request
Feb 19, 2019
…lastic#38912) This reverts commit b91e058. This should be fixed by elastic#38873 Resolves elastic#38711
dakrone
added a commit
to dakrone/elasticsearch
that referenced
this pull request
Feb 19, 2019
…lastic#38912) This reverts commit b91e058. This should be fixed by elastic#38873 Resolves elastic#38711
dakrone
added a commit
to dakrone/elasticsearch
that referenced
this pull request
Feb 19, 2019
…lastic#38912) This reverts commit b91e058. This should be fixed by elastic#38873 Resolves elastic#38711
This was referenced Feb 19, 2019
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.
Prior to this commit, when an indexing operation resulted in an
Engine.Result.Type.MAPPING_UPDATE_REQUIRED, TransportShardBulkActionimmediately retries the indexing operation to see if it succeeds. In the event
that it succeeds the context does not wait until the mapping update has
propagated through the cluster state before finishing the indexing.
In some of our tests we rely on mappings being available as soon as they've been
introduced in a document that indexed correctly. By removing the immediate retry
we always wait for this to be the case.
Resolves #38428
Supercedes #38579
Relates to #38711