Skip to content

Commit 4aef8d1

Browse files
authored
Changing deprecation info api message for templates with mappings with a single custom type to warning level (#80858)
Custom types in templates do not cause a server to fail to come up. So this commit takes the level of the deprecation info API message down from critical to warning. Relates #80676
1 parent 3743dc6 commit 4aef8d1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

x-pack/plugin/deprecation/src/main/java/org/elasticsearch/xpack/deprecation/ClusterDeprecationChecks.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ static DeprecationIssue checkTemplatesWithCustomAndMultipleTypes(ClusterState st
236236
deprecationIssue = null;
237237
} else if (templatesWithMultipleTypes.isEmpty()) {
238238
deprecationIssue = new DeprecationIssue(
239-
DeprecationIssue.Level.CRITICAL,
239+
DeprecationIssue.Level.WARNING,
240240
"Custom mapping types in index templates are deprecated",
241241
"https://ela.st/es-deprecation-7-custom-types",
242242
"Update or remove the following index templates before upgrading to 8.0: "

0 commit comments

Comments
 (0)