Skip to content

Commit

Permalink
Only install templates for deprecation indices from elected master no…
Browse files Browse the repository at this point in the history
…de. (#70057)

When running in a mixed cluster with node with version pre 7.8 and post 7.8 then
attempting the install composable index templates from any node can cause many
error logs indicating that put composable and component index template apis don't exist.
These APIs are always redirect to the elected master and as long as this node
is on a pre 7.8 version then attempting to install these templates will always fail.

Relates to #69918
  • Loading branch information
martijnvg authored Mar 8, 2021
1 parent 06f244b commit aff015a
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -90,4 +90,12 @@ protected List<LifecyclePolicyConfig> getPolicyConfigs() {
protected String getOrigin() {
return DEPRECATION_ORIGIN;
}

@Override
protected boolean requiresMasterNode() {
// These installs a composable index template which is only supported from version 7.8
// 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 aff015a

Please sign in to comment.