diff --git a/x-pack/plugin/deprecation/src/main/java/org/elasticsearch/xpack/deprecation/logging/DeprecationIndexingTemplateRegistry.java b/x-pack/plugin/deprecation/src/main/java/org/elasticsearch/xpack/deprecation/logging/DeprecationIndexingTemplateRegistry.java index 07b7833d138af..904481a2ccd62 100644 --- a/x-pack/plugin/deprecation/src/main/java/org/elasticsearch/xpack/deprecation/logging/DeprecationIndexingTemplateRegistry.java +++ b/x-pack/plugin/deprecation/src/main/java/org/elasticsearch/xpack/deprecation/logging/DeprecationIndexingTemplateRegistry.java @@ -90,4 +90,12 @@ protected List 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; + } }