Revision 0216cf065b03611f29c540cf17ee653db88fd9c6 authored by David Roberts on 24 May 2021, 10:13:24 UTC, committed by GitHub on 24 May 2021, 10:13:24 UTC
Legacy index templates are deprecated but ML was still using them for its hidden indices. This PR switches the legacy ML index templates to use the new composable index template framework. The composable index templates get installed once the master node is on a version that understands them. For templates that need to be up-to-date in mixed version clusters where the master might still be on a version that doesn't understand composable index templates we still ship the legacy template too, and install this if required in the mixed version cluster. (The notifications index template falls into this category.) This makes a couple of places in the code a little messy, as the new style template definitions don't contain a dummy _doc level (where the type used to be), but the legacy template definitions do - hopefully we can tidy this up in master once 8.0 is released. There is one more change of note in this PR that is not strictly related to switching to composable templates, but which was shown up during the testing. We used to wait for all templates to be installed by the master node before running tests in mixed version clusters. I do not believe we should have been doing this, as other upgrade orchestration systems, e.g. Cloud, will not be doing this. Our production code needs to install templates and/or mappings before any operation that requires them if there's a chance that the elected master won't have done this in time. Fixes #65437
1 parent 7080aef
.editorconfig
# EditorConfig: http://editorconfig.org/
root = true
[*]
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
indent_style = space
[*.gradle]
indent_size = 2
[*.groovy]
indent_size = 4
max_line_length = 140
[*.java]
indent_size = 4
max_line_length = 140
[*.json]
indent_size = 2
[*.py]
indent_size = 2
[*.sh]
indent_size = 2
[*.{yml,yaml}]
indent_size = 2
[*.{xsd,xml}]
indent_size = 4
Computing file changes ...