Skip to content

Commit ea4879d

Browse files
Up the frozen indices deprecation to CRITICAL (elastic#119879)
We will be removing the ability to read frozen indices in 9.0, so we should issue a critical level deprecation issue in 8.18 and 8.19. ES-9736 #comment Upped the deprecation level to CRITICAL
1 parent 8d41248 commit ea4879d

File tree

3 files changed

+24
-8
lines changed

3 files changed

+24
-8
lines changed

docs/changelog/119879.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
pr: 119879
2+
summary: Increase the frozen indices deprecation level to `CRITICAL`
3+
area: Indices APIs
4+
type: deprecation
5+
issues: []
6+
deprecation:
7+
title: Increase the frozen indices deprecation level to `CRITICAL`
8+
area: Index setting
9+
details: >-
10+
The migration deprecations API previously returned a warning on frozen indices. Support for reading frozen indices
11+
will be removed in 9.0, so in 8.18 this has been made a critical issue.
12+
impact: >-
13+
Users are required to unfreeze any frozen indices before upgrading to 9.x. (N.B. It was impossible to freeze indices
14+
in 8.x, so this only applies to 7.x indices which have not been reindexed.)

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -119,12 +119,12 @@ static DeprecationIssue frozenIndexSettingCheck(IndexMetadata indexMetadata, Clu
119119
if (Boolean.TRUE.equals(isIndexFrozen)) {
120120
String indexName = indexMetadata.getIndex().getName();
121121
return new DeprecationIssue(
122-
DeprecationIssue.Level.WARNING,
123-
"index ["
124-
+ indexName
125-
+ "] is a frozen index. The frozen indices feature is deprecated and will be removed in a future version",
122+
DeprecationIssue.Level.CRITICAL,
123+
"Index [" + indexName + "] is a frozen index. The frozen indices feature is deprecated and will be removed in version 9.0.",
126124
"https://www.elastic.co/guide/en/elasticsearch/reference/master/frozen-indices.html",
127-
"Frozen indices no longer offer any advantages. Consider cold or frozen tiers in place of frozen indices.",
125+
"Frozen indices must be unfrozen before upgrading to version 9.0."
126+
+ " (The legacy frozen indices feature no longer offers any advantages."
127+
+ " You may consider cold or frozen tiers in place of frozen indices.)",
128128
false,
129129
null
130130
);

x-pack/plugin/deprecation/src/test/java/org/elasticsearch/xpack/deprecation/IndexDeprecationChecksTests.java

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -223,10 +223,12 @@ public void testFrozenIndex() {
223223
issues,
224224
contains(
225225
new DeprecationIssue(
226-
DeprecationIssue.Level.WARNING,
227-
"index [test] is a frozen index. The frozen indices feature is deprecated and will be removed in a future version",
226+
DeprecationIssue.Level.CRITICAL,
227+
"Index [test] is a frozen index. The frozen indices feature is deprecated and will be removed in version 9.0.",
228228
"https://www.elastic.co/guide/en/elasticsearch/reference/master/frozen-indices.html",
229-
"Frozen indices no longer offer any advantages. Consider cold or frozen tiers in place of frozen indices.",
229+
"Frozen indices must be unfrozen before upgrading to version 9.0."
230+
+ " (The legacy frozen indices feature no longer offers any advantages."
231+
+ " You may consider cold or frozen tiers in place of frozen indices.)",
230232
false,
231233
null
232234
)

0 commit comments

Comments
 (0)