diff --git a/x-pack/plugin/deprecation/src/main/java/org/elasticsearch/xpack/deprecation/IndexDeprecationChecker.java b/x-pack/plugin/deprecation/src/main/java/org/elasticsearch/xpack/deprecation/IndexDeprecationChecker.java index dfd308d23afda..8a6214c4cf02f 100644 --- a/x-pack/plugin/deprecation/src/main/java/org/elasticsearch/xpack/deprecation/IndexDeprecationChecker.java +++ b/x-pack/plugin/deprecation/src/main/java/org/elasticsearch/xpack/deprecation/IndexDeprecationChecker.java @@ -119,8 +119,7 @@ private DeprecationIssue oldIndicesCheck( return new DeprecationIssue( DeprecationIssue.Level.CRITICAL, "One or more Transforms write to this index with a compatibility version < 8.0", - "https://www.elastic.co/guide/en/elastic-stack/9.0/upgrading-elastic-stack.html" - + "#breaking_90_transform_destination_index", + "https://www.elastic.co/docs/deploy-manage/upgrade/prepare-to-upgrade#transform-migration", Strings.format( "This index was created in version [%s] and requires action before upgrading to 9.0. The following transforms are " + "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( return new DeprecationIssue( DeprecationIssue.Level.WARNING, "One or more Transforms write to this old index with a compatibility version < 8.0", - "https://www.elastic.co/guide/en/elastic-stack/9.0/upgrading-elastic-stack.html" - + "#breaking_90_transform_destination_index", + "https://www.elastic.co/docs/deploy-manage/upgrade/prepare-to-upgrade#transform-migration", Strings.format( "This index was created in version [%s] and will be supported as a read-only index in 9.0. The following " + "transforms are no longer able to write to this index: [%s]. Refer to the migration guide to learn more " diff --git a/x-pack/plugin/deprecation/src/test/java/org/elasticsearch/xpack/deprecation/IndexDeprecationCheckerTests.java b/x-pack/plugin/deprecation/src/test/java/org/elasticsearch/xpack/deprecation/IndexDeprecationCheckerTests.java index fc5a085ac0653..403ed8c113d94 100644 --- a/x-pack/plugin/deprecation/src/test/java/org/elasticsearch/xpack/deprecation/IndexDeprecationCheckerTests.java +++ b/x-pack/plugin/deprecation/src/test/java/org/elasticsearch/xpack/deprecation/IndexDeprecationCheckerTests.java @@ -106,7 +106,7 @@ public void testOldTransformIndicesCheck() { var expected = new DeprecationIssue( DeprecationIssue.Level.CRITICAL, "One or more Transforms write to this index with a compatibility version < 8.0", - "https://www.elastic.co/guide/en/elastic-stack/9.0/upgrading-elastic-stack.html#breaking_90_transform_destination_index", + "https://www.elastic.co/docs/deploy-manage/upgrade/prepare-to-upgrade#transform-migration", "This index was created in version [" + OLD_VERSION.toReleaseVersion() + "] and requires action before upgrading to 9.0. " @@ -132,7 +132,7 @@ public void testOldIndicesCheckWithMultipleTransforms() { var expected = new DeprecationIssue( DeprecationIssue.Level.CRITICAL, "One or more Transforms write to this index with a compatibility version < 8.0", - "https://www.elastic.co/guide/en/elastic-stack/9.0/upgrading-elastic-stack.html#breaking_90_transform_destination_index", + "https://www.elastic.co/docs/deploy-manage/upgrade/prepare-to-upgrade#transform-migration", "This index was created in version [" + OLD_VERSION.toReleaseVersion() + "] and requires action before upgrading to 9.0. " @@ -162,8 +162,7 @@ public void testMultipleOldIndicesCheckWithTransforms() { new DeprecationIssue( DeprecationIssue.Level.CRITICAL, "One or more Transforms write to this index with a compatibility version < 8.0", - "https://www.elastic.co/guide/en/elastic-stack/9.0/upgrading-elastic-stack.html" - + "#breaking_90_transform_destination_index", + "https://www.elastic.co/docs/deploy-manage/upgrade/prepare-to-upgrade#transform-migration", "This index was created in version [" + OLD_VERSION.toReleaseVersion() + "] and requires action before upgrading to 9.0. " @@ -178,8 +177,7 @@ public void testMultipleOldIndicesCheckWithTransforms() { new DeprecationIssue( DeprecationIssue.Level.CRITICAL, "One or more Transforms write to this index with a compatibility version < 8.0", - "https://www.elastic.co/guide/en/elastic-stack/9.0/upgrading-elastic-stack.html" - + "#breaking_90_transform_destination_index", + "https://www.elastic.co/docs/deploy-manage/upgrade/prepare-to-upgrade#transform-migration", "This index was created in version [" + OLD_VERSION.toReleaseVersion() + "] and requires action before upgrading to 9.0. " @@ -413,7 +411,7 @@ public void testOldTransformIndicesIgnoredCheck() { var expected = new DeprecationIssue( DeprecationIssue.Level.WARNING, "One or more Transforms write to this old index with a compatibility version < 8.0", - "https://www.elastic.co/guide/en/elastic-stack/9.0/upgrading-elastic-stack.html#breaking_90_transform_destination_index", + "https://www.elastic.co/docs/deploy-manage/upgrade/prepare-to-upgrade#transform-migration", "This index was created in version [" + OLD_VERSION.toReleaseVersion() + "] and will be supported as a read-only index in 9.0. " @@ -439,7 +437,7 @@ public void testOldIndicesIgnoredCheckWithMultipleTransforms() { var expected = new DeprecationIssue( DeprecationIssue.Level.WARNING, "One or more Transforms write to this old index with a compatibility version < 8.0", - "https://www.elastic.co/guide/en/elastic-stack/9.0/upgrading-elastic-stack.html#breaking_90_transform_destination_index", + "https://www.elastic.co/docs/deploy-manage/upgrade/prepare-to-upgrade#transform-migration", "This index was created in version [" + OLD_VERSION.toReleaseVersion() + "] and will be supported as a read-only index in 9.0. " @@ -469,8 +467,7 @@ public void testMultipleOldIndicesIgnoredCheckWithTransforms() { new DeprecationIssue( DeprecationIssue.Level.WARNING, "One or more Transforms write to this old index with a compatibility version < 8.0", - "https://www.elastic.co/guide/en/elastic-stack/9.0/upgrading-elastic-stack.html" - + "#breaking_90_transform_destination_index", + "https://www.elastic.co/docs/deploy-manage/upgrade/prepare-to-upgrade#transform-migration", "This index was created in version [" + OLD_VERSION.toReleaseVersion() + "] and will be supported as a read-only index in 9.0. " @@ -485,8 +482,7 @@ public void testMultipleOldIndicesIgnoredCheckWithTransforms() { new DeprecationIssue( DeprecationIssue.Level.WARNING, "One or more Transforms write to this old index with a compatibility version < 8.0", - "https://www.elastic.co/guide/en/elastic-stack/9.0/upgrading-elastic-stack.html" - + "#breaking_90_transform_destination_index", + "https://www.elastic.co/docs/deploy-manage/upgrade/prepare-to-upgrade#transform-migration", "This index was created in version [" + OLD_VERSION.toReleaseVersion() + "] and will be supported as a read-only index in 9.0. "