diff --git a/x-pack/plugin/stack/src/main/java/org/elasticsearch/xpack/stack/StackTemplateRegistry.java b/x-pack/plugin/stack/src/main/java/org/elasticsearch/xpack/stack/StackTemplateRegistry.java index fbdbaa1a9cd..e1ae7282650 100644 --- a/x-pack/plugin/stack/src/main/java/org/elasticsearch/xpack/stack/StackTemplateRegistry.java +++ b/x-pack/plugin/stack/src/main/java/org/elasticsearch/xpack/stack/StackTemplateRegistry.java @@ -137,4 +137,15 @@ public class StackTemplateRegistry extends IndexTemplateRegistry { protected String getOrigin() { return ClientHelper.STACK_ORIGIN; } + + @Override + protected boolean requiresMasterNode() { + // Stack templates use the composable index template and component APIs, + // these APIs aren't supported in 7.7 and earlier and in mixed cluster + // environments this can cause a lot of ActionNotFoundTransportException + // errors in the logs during rolling upgrades. If these templates + // are only installed via elected master node then the APIs are always + // there and the ActionNotFoundTransportException errors are then prevented. + return true; + } }