Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,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/elasticsearch/reference/current/migrating-9.0.html"
"https://www.elastic.co/guide/en/elastic-stack/9.0/upgrading-elastic-stack.html"
+ "#breaking_90_transform_destination_index",
Strings.format(
"This index was created in version [%s] and requires action before upgrading to 9.0. The following transforms are "
Expand All @@ -119,7 +119,7 @@ private DeprecationIssue oldIndicesCheck(
return new DeprecationIssue(
DeprecationIssue.Level.CRITICAL,
"Old index with a compatibility version < 8.0",
"https://www.elastic.co/guide/en/elasticsearch/reference/current/migrating-9.0.html",
"https://www.elastic.co/guide/en/elastic-stack/9.0/upgrading-elastic-stack.html",
"This index has version: " + currentCompatibilityVersion.toReleaseVersion(),
false,
Map.of("reindex_required", true)
Expand All @@ -146,7 +146,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/elasticsearch/reference/current/migrating-9.0.html"
"https://www.elastic.co/guide/en/elastic-stack/9.0/upgrading-elastic-stack.html"
+ "#breaking_90_transform_destination_index",
Strings.format(
"This index was created in version [%s] and will be supported as a read-only index in 9.0. The following "
Expand All @@ -162,7 +162,7 @@ private DeprecationIssue ignoredOldIndicesCheck(
return new DeprecationIssue(
DeprecationIssue.Level.WARNING,
"Old index with a compatibility version < 8.0 has been ignored",
"https://www.elastic.co/guide/en/elasticsearch/reference/current/breaking-changes-9.0.html",
"https://www.elastic.co/guide/en/elastic-stack/9.0/upgrading-elastic-stack.html",
"This read-only index has version: "
+ currentCompatibilityVersion.toReleaseVersion()
+ " and will be supported as read-only in 9.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ public void testOldIndicesCheck() {
DeprecationIssue expected = new DeprecationIssue(
DeprecationIssue.Level.CRITICAL,
"Old index with a compatibility version < 8.0",
"https://www.elastic.co/guide/en/elasticsearch/reference/current/migrating-9.0.html",
"https://www.elastic.co/guide/en/elastic-stack/9.0/upgrading-elastic-stack.html",
"This index has version: " + OLD_VERSION.toReleaseVersion(),
false,
singletonMap("reindex_required", true)
Expand All @@ -104,8 +104,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/elasticsearch/reference/current/migrating-9.0.html"
+ "#breaking_90_transform_destination_index",
"https://www.elastic.co/guide/en/elastic-stack/9.0/upgrading-elastic-stack.html#breaking_90_transform_destination_index",
"This index was created in version ["
+ OLD_VERSION.toReleaseVersion()
+ "] and requires action before upgrading to 9.0. "
Expand All @@ -131,8 +130,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/elasticsearch/reference/current/migrating-9.0.html"
+ "#breaking_90_transform_destination_index",
"https://www.elastic.co/guide/en/elastic-stack/9.0/upgrading-elastic-stack.html#breaking_90_transform_destination_index",
"This index was created in version ["
+ OLD_VERSION.toReleaseVersion()
+ "] and requires action before upgrading to 9.0. "
Expand Down Expand Up @@ -162,7 +160,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/elasticsearch/reference/current/migrating-9.0.html"
"https://www.elastic.co/guide/en/elastic-stack/9.0/upgrading-elastic-stack.html"
+ "#breaking_90_transform_destination_index",
"This index was created in version ["
+ OLD_VERSION.toReleaseVersion()
Expand All @@ -178,7 +176,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/elasticsearch/reference/current/migrating-9.0.html"
"https://www.elastic.co/guide/en/elastic-stack/9.0/upgrading-elastic-stack.html"
+ "#breaking_90_transform_destination_index",
"This index was created in version ["
+ OLD_VERSION.toReleaseVersion()
Expand Down Expand Up @@ -285,7 +283,7 @@ public void testOldIndicesIgnoredWarningCheck() {
DeprecationIssue expected = new DeprecationIssue(
DeprecationIssue.Level.WARNING,
"Old index with a compatibility version < 8.0 has been ignored",
"https://www.elastic.co/guide/en/elasticsearch/reference/current/breaking-changes-9.0.html",
"https://www.elastic.co/guide/en/elastic-stack/9.0/upgrading-elastic-stack.html",
"This read-only index has version: " + OLD_VERSION.toReleaseVersion() + " and will be supported as read-only in 9.0",
false,
singletonMap("reindex_required", true)
Expand Down Expand Up @@ -336,8 +334,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/elasticsearch/reference/current/migrating-9.0.html"
+ "#breaking_90_transform_destination_index",
"https://www.elastic.co/guide/en/elastic-stack/9.0/upgrading-elastic-stack.html#breaking_90_transform_destination_index",
"This index was created in version ["
+ OLD_VERSION.toReleaseVersion()
+ "] and will be supported as a read-only index in 9.0. "
Expand All @@ -363,8 +360,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/elasticsearch/reference/current/migrating-9.0.html"
+ "#breaking_90_transform_destination_index",
"https://www.elastic.co/guide/en/elastic-stack/9.0/upgrading-elastic-stack.html#breaking_90_transform_destination_index",
"This index was created in version ["
+ OLD_VERSION.toReleaseVersion()
+ "] and will be supported as a read-only index in 9.0. "
Expand Down Expand Up @@ -394,7 +390,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/elasticsearch/reference/current/migrating-9.0.html"
"https://www.elastic.co/guide/en/elastic-stack/9.0/upgrading-elastic-stack.html"
+ "#breaking_90_transform_destination_index",
"This index was created in version ["
+ OLD_VERSION.toReleaseVersion()
Expand All @@ -410,7 +406,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/elasticsearch/reference/current/migrating-9.0.html"
"https://www.elastic.co/guide/en/elastic-stack/9.0/upgrading-elastic-stack.html"
+ "#breaking_90_transform_destination_index",
"This index was created in version ["
+ OLD_VERSION.toReleaseVersion()
Expand Down