File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed
server/src/main/java/org/elasticsearch/cluster/metadata Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -965,6 +965,9 @@ private static void maybeValidateDataStreamsStillReferenced(
965
965
// We check whether anything relevant has changed that could affect data stream coverage and return early if not.
966
966
// These checks are based on the implementation of findV2Template and the data stream template check in this method.
967
967
// If we're adding a new template, we do the full check in case this template's priority changes coverage.
968
+ // Note that this method is also run for component templates, and that component templates can configure the
969
+ // `index.hidden` setting. In that case, we'd never take this shortcut as we're comparing a composite template
970
+ // with a composable template (i.e. we don't take component templates into account for the existing template).
968
971
if (existingTemplate != null
969
972
&& Objects .equals (existingTemplate .indexPatterns (), newTemplate .indexPatterns ())
970
973
&& Objects .equals (existingSettings .get (IndexMetadata .SETTING_INDEX_HIDDEN ), newSettings .get (IndexMetadata .SETTING_INDEX_HIDDEN ))
You can’t perform that action at this time.
0 commit comments