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
File | Mode | Size |
---|---|---|
.ci | ||
.github | ||
.idea | ||
benchmarks | ||
buildSrc | ||
client | ||
dev-tools | ||
distribution | ||
docs | ||
gradle | ||
libs | ||
licenses | ||
modules | ||
plugins | ||
qa | ||
rest-api-spec | ||
server | ||
test | ||
x-pack | ||
.dir-locals.el | -rw-r--r-- | 3.3 KB |
.editorconfig | -rw-r--r-- | 419 bytes |
.gitattributes | -rw-r--r-- | 32 bytes |
.gitignore | -rw-r--r-- | 1.2 KB |
CONTRIBUTING.md | -rw-r--r-- | 36.8 KB |
LICENSE.txt | -rw-r--r-- | 546 bytes |
NOTICE.txt | -rw-r--r-- | 228 bytes |
README.asciidoc | -rw-r--r-- | 2.6 KB |
TESTING.asciidoc | -rw-r--r-- | 32.5 KB |
Vagrantfile | -rw-r--r-- | 14.9 KB |
build.gradle | -rw-r--r-- | 21.2 KB |
gradle.properties | -rw-r--r-- | 1.2 KB |
gradlew | -rwxr-xr-x | 5.6 KB |
gradlew.bat | -rw-r--r-- | 2.7 KB |
settings.gradle | -rw-r--r-- | 4.4 KB |
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...