Skip to content

Commit

Permalink
Include persistent settings in snapshot restore validation
Browse files Browse the repository at this point in the history
Signed-off-by: bansvaru <[email protected]>
  • Loading branch information
linuxpi committed Nov 28, 2023
1 parent 05045a2 commit 2129ced
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -582,7 +582,7 @@ public ClusterState execute(ClusterState currentState) {
if (metadata.templates() != null) {
// TODO: Should all existing templates be deleted first?
for (final IndexTemplateMetadata cursor : metadata.templates().values()) {
MetadataCreateIndexService.validateRefreshIntervalSettings(cursor.settings(), clusterSettings);
MetadataCreateIndexService.validateRefreshIntervalSettings(cursor.settings(), clusterSettings, metadata.persistentSettings());
mdBuilder.put(cursor);
}
}
Expand Down

0 comments on commit 2129ced

Please sign in to comment.