Skip to content

Commit

Permalink
No longer require master node to install Watcher templates (#85287) (#…
Browse files Browse the repository at this point in the history
…85294)

The master node was required to install Watcher index templates 
in earlier versions of 7.x to ensure that the master node was aware of
composable index templates. 

When upgrading to 8.x this is no longer an issue since all upgrade paths
require elder version of Elasticsearch to be on a version that is aware of 
composable index templates. 

This should fix #85043 by 
ensuring that the watcher history index template is always in place prior
to it's intended usage irregardless of the order of which nodes are upgraded.
  • Loading branch information
jakelandis committed Mar 23, 2022
1 parent e3a5d9a commit ba84ec5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
6 changes: 6 additions & 0 deletions docs/changelog/85287.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
pr: 85287
summary: No longer require master node to install Watcher templates
area: Watcher
type: bug
issues:
- 85043
Original file line number Diff line number Diff line change
Expand Up @@ -94,12 +94,4 @@ public static boolean validate(ClusterState state) {
.map(s -> Integer.valueOf(s.substring(s.lastIndexOf('-') + 1)))
.anyMatch(version -> version >= 12);
}

@Override
protected boolean requiresMasterNode() {
// These installs a composable index template which is only supported in early versions of 7.x
// In mixed cluster without this set to true can result in errors in the logs during rolling upgrades.
// If these template(s) are only installed via elected master node then composable templates are available.
return true;
}
}

0 comments on commit ba84ec5

Please sign in to comment.