Skip to content

Commit d9eb665

Browse files
authored
[Transform] Change reindex links (#129879) (#129914)
Link directly to the Transform reindex migration guide.
1 parent 26b260b commit d9eb665

File tree

2 files changed

+10
-16
lines changed

2 files changed

+10
-16
lines changed

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

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -119,8 +119,7 @@ private DeprecationIssue oldIndicesCheck(
119119
return new DeprecationIssue(
120120
DeprecationIssue.Level.CRITICAL,
121121
"One or more Transforms write to this index with a compatibility version < 8.0",
122-
"https://www.elastic.co/guide/en/elastic-stack/9.0/upgrading-elastic-stack.html"
123-
+ "#breaking_90_transform_destination_index",
122+
"https://www.elastic.co/docs/deploy-manage/upgrade/prepare-to-upgrade#transform-migration",
124123
Strings.format(
125124
"This index was created in version [%s] and requires action before upgrading to 9.0. The following transforms are "
126125
+ "configured to write to this index: [%s]. Refer to the migration guide to learn more about how to prepare "
@@ -173,8 +172,7 @@ private DeprecationIssue ignoredOldIndicesCheck(
173172
return new DeprecationIssue(
174173
DeprecationIssue.Level.WARNING,
175174
"One or more Transforms write to this old index with a compatibility version < 8.0",
176-
"https://www.elastic.co/guide/en/elastic-stack/9.0/upgrading-elastic-stack.html"
177-
+ "#breaking_90_transform_destination_index",
175+
"https://www.elastic.co/docs/deploy-manage/upgrade/prepare-to-upgrade#transform-migration",
178176
Strings.format(
179177
"This index was created in version [%s] and will be supported as a read-only index in 9.0. The following "
180178
+ "transforms are no longer able to write to this index: [%s]. Refer to the migration guide to learn more "

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

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ public void testOldTransformIndicesCheck() {
106106
var expected = new DeprecationIssue(
107107
DeprecationIssue.Level.CRITICAL,
108108
"One or more Transforms write to this index with a compatibility version < 8.0",
109-
"https://www.elastic.co/guide/en/elastic-stack/9.0/upgrading-elastic-stack.html#breaking_90_transform_destination_index",
109+
"https://www.elastic.co/docs/deploy-manage/upgrade/prepare-to-upgrade#transform-migration",
110110
"This index was created in version ["
111111
+ OLD_VERSION.toReleaseVersion()
112112
+ "] and requires action before upgrading to 9.0. "
@@ -132,7 +132,7 @@ public void testOldIndicesCheckWithMultipleTransforms() {
132132
var expected = new DeprecationIssue(
133133
DeprecationIssue.Level.CRITICAL,
134134
"One or more Transforms write to this index with a compatibility version < 8.0",
135-
"https://www.elastic.co/guide/en/elastic-stack/9.0/upgrading-elastic-stack.html#breaking_90_transform_destination_index",
135+
"https://www.elastic.co/docs/deploy-manage/upgrade/prepare-to-upgrade#transform-migration",
136136
"This index was created in version ["
137137
+ OLD_VERSION.toReleaseVersion()
138138
+ "] and requires action before upgrading to 9.0. "
@@ -162,8 +162,7 @@ public void testMultipleOldIndicesCheckWithTransforms() {
162162
new DeprecationIssue(
163163
DeprecationIssue.Level.CRITICAL,
164164
"One or more Transforms write to this index with a compatibility version < 8.0",
165-
"https://www.elastic.co/guide/en/elastic-stack/9.0/upgrading-elastic-stack.html"
166-
+ "#breaking_90_transform_destination_index",
165+
"https://www.elastic.co/docs/deploy-manage/upgrade/prepare-to-upgrade#transform-migration",
167166
"This index was created in version ["
168167
+ OLD_VERSION.toReleaseVersion()
169168
+ "] and requires action before upgrading to 9.0. "
@@ -178,8 +177,7 @@ public void testMultipleOldIndicesCheckWithTransforms() {
178177
new DeprecationIssue(
179178
DeprecationIssue.Level.CRITICAL,
180179
"One or more Transforms write to this index with a compatibility version < 8.0",
181-
"https://www.elastic.co/guide/en/elastic-stack/9.0/upgrading-elastic-stack.html"
182-
+ "#breaking_90_transform_destination_index",
180+
"https://www.elastic.co/docs/deploy-manage/upgrade/prepare-to-upgrade#transform-migration",
183181
"This index was created in version ["
184182
+ OLD_VERSION.toReleaseVersion()
185183
+ "] and requires action before upgrading to 9.0. "
@@ -413,7 +411,7 @@ public void testOldTransformIndicesIgnoredCheck() {
413411
var expected = new DeprecationIssue(
414412
DeprecationIssue.Level.WARNING,
415413
"One or more Transforms write to this old index with a compatibility version < 8.0",
416-
"https://www.elastic.co/guide/en/elastic-stack/9.0/upgrading-elastic-stack.html#breaking_90_transform_destination_index",
414+
"https://www.elastic.co/docs/deploy-manage/upgrade/prepare-to-upgrade#transform-migration",
417415
"This index was created in version ["
418416
+ OLD_VERSION.toReleaseVersion()
419417
+ "] and will be supported as a read-only index in 9.0. "
@@ -439,7 +437,7 @@ public void testOldIndicesIgnoredCheckWithMultipleTransforms() {
439437
var expected = new DeprecationIssue(
440438
DeprecationIssue.Level.WARNING,
441439
"One or more Transforms write to this old index with a compatibility version < 8.0",
442-
"https://www.elastic.co/guide/en/elastic-stack/9.0/upgrading-elastic-stack.html#breaking_90_transform_destination_index",
440+
"https://www.elastic.co/docs/deploy-manage/upgrade/prepare-to-upgrade#transform-migration",
443441
"This index was created in version ["
444442
+ OLD_VERSION.toReleaseVersion()
445443
+ "] and will be supported as a read-only index in 9.0. "
@@ -469,8 +467,7 @@ public void testMultipleOldIndicesIgnoredCheckWithTransforms() {
469467
new DeprecationIssue(
470468
DeprecationIssue.Level.WARNING,
471469
"One or more Transforms write to this old index with a compatibility version < 8.0",
472-
"https://www.elastic.co/guide/en/elastic-stack/9.0/upgrading-elastic-stack.html"
473-
+ "#breaking_90_transform_destination_index",
470+
"https://www.elastic.co/docs/deploy-manage/upgrade/prepare-to-upgrade#transform-migration",
474471
"This index was created in version ["
475472
+ OLD_VERSION.toReleaseVersion()
476473
+ "] and will be supported as a read-only index in 9.0. "
@@ -485,8 +482,7 @@ public void testMultipleOldIndicesIgnoredCheckWithTransforms() {
485482
new DeprecationIssue(
486483
DeprecationIssue.Level.WARNING,
487484
"One or more Transforms write to this old index with a compatibility version < 8.0",
488-
"https://www.elastic.co/guide/en/elastic-stack/9.0/upgrading-elastic-stack.html"
489-
+ "#breaking_90_transform_destination_index",
485+
"https://www.elastic.co/docs/deploy-manage/upgrade/prepare-to-upgrade#transform-migration",
490486
"This index was created in version ["
491487
+ OLD_VERSION.toReleaseVersion()
492488
+ "] and will be supported as a read-only index in 9.0. "

0 commit comments

Comments
 (0)