Skip to content

Commit

Permalink
Relax data path deprecations from critical to warn (#85952) (#85963)
Browse files Browse the repository at this point in the history
The deprecations for index and shared data paths were defined at
critical level, but these are not removed in 8.0. This commit relaxes
these deprecation messages so they are just warnings.

relates #85695
  • Loading branch information
rjernst authored Apr 18, 2022
1 parent a1935d2 commit b847e5d
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 4 deletions.
5 changes: 5 additions & 0 deletions docs/changelog/85952.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
pr: 85952
summary: Relax data path deprecations from critical to warn
area: Infra/Core
type: bug
issues: []
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ static DeprecationIssue checkIndexDataPath(IndexMetadata indexMetadata) {
final String url = "https://www.elastic.co/guide/en/elasticsearch/reference/7.13/"
+ "breaking-changes-7.13.html#deprecate-shared-data-path-setting";
final String details = "Found index data path configured. Discontinue use of this setting.";
return new DeprecationIssue(DeprecationIssue.Level.CRITICAL, message, url, details, false, null);
return new DeprecationIssue(DeprecationIssue.Level.WARNING, message, url, details, false, null);
}
return null;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ static DeprecationIssue checkSharedDataPathSetting(
final String url = "https://www.elastic.co/guide/en/elasticsearch/reference/7.13/"
+ "breaking-changes-7.13.html#deprecate-shared-data-path-setting";
final String details = "Found shared data path configured. Discontinue use of this setting.";
return new DeprecationIssue(DeprecationIssue.Level.CRITICAL, message, url, details, false, null);
return new DeprecationIssue(DeprecationIssue.Level.WARNING, message, url, details, false, null);
}
return null;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ public void testIndexDataPathSetting() {
issues,
contains(
new DeprecationIssue(
DeprecationIssue.Level.CRITICAL,
DeprecationIssue.Level.WARNING,
"setting [index.data_path] is deprecated and will be removed in a future version",
expectedUrl,
"Found index data path configured. Discontinue use of this setting.",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ public void testSharedDataPathSetting() {
issues,
contains(
new DeprecationIssue(
DeprecationIssue.Level.CRITICAL,
DeprecationIssue.Level.WARNING,
"setting [path.shared_data] is deprecated and will be removed in a future version",
expectedUrl,
"Found shared data path configured. Discontinue use of this setting.",
Expand Down

0 comments on commit b847e5d

Please sign in to comment.