-
Notifications
You must be signed in to change notification settings - Fork 24.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fail early if an index request has the wrong type (#77417)
If an index request contains a type that is different to the type defined on the index, we fail the request with an error. However, this check happens fairly late on in the process, and if the index request has generated dynamic updates that conflict with the existing mappings on the index then merge errors will get thrown instead. This is confusing to users, as it is not at all obvious why these conflicting mappings have been generated. This commit adds a check for valid types early in the indexing process, so that requests with invalid types will be failed with a more informative error message. Fixes #77411
- Loading branch information
1 parent
08f8b80
commit 0614de2
Showing
5 changed files
with
44 additions
and
5 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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