-
Notifications
You must be signed in to change notification settings - Fork 25k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ML] Automatic management for ML system indices (#68044)
The ML system indices now use the special functionality for applying the correct mappings on first use. This replaces the index templates that used to do this job, but were vulnerable to tampering. A number of other changes have had to be made to utilise the system index functionality: 1. All fields previously missed out of mappings have been added to the system index mappings, with the types that would have been assigned dynamically in previous versions. This is necessary because dynamic mappings updates are banned for system indices, yet some of our mappings allow dynamic updates. 2. As a result of the contradiction regarding dynamic mappings, we are now very well protected against failing to add new fields to the mappings for those indices that exhibit the contradiction (which are .ml-config and .ml-meta). This means their mappings don't need to be explicitly compared to expected mappings in upgrade tests now. Instead, any usage of a new field during or after upgrade will trigger an error in any test this occurs in. 3. Reserved fields for the config index were unnecessary (only used by tests) and just added extra complication, so they have been removed. We have the concept of reserved fields for our results indices because end user fields get added to results and we need to ensure they don't clash with fields we want to use ourselves. This problem does not exist for the config index.
- Loading branch information
1 parent
e2d5183
commit 5f5968b
Showing
34 changed files
with
428 additions
and
534 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
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
Oops, something went wrong.