Skip to content

Commit bdfdb43

Browse files
elasticsearchmachinelukewhiting
authored andcommitted
[CI] Auto commit changes from spotless
1 parent 4654255 commit bdfdb43

File tree

2 files changed

+27
-9
lines changed

2 files changed

+27
-9
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,9 @@ private DeprecationIssue ignoredOldIndicesCheck(
164164
"https://ela.st/es-deprecation-9-index-version",
165165
"This read-only index has version: "
166166
+ currentCompatibilityVersion.toReleaseVersion()
167-
+ " and will be supported as read-only in " + Version.CURRENT.major + ".0",
167+
+ " and will be supported as read-only in "
168+
+ Version.CURRENT.major
169+
+ ".0",
168170
false,
169171
Map.of("reindex_required", true)
170172
);

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

Lines changed: 24 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,9 @@ public void testOldTransformIndicesCheck() {
107107
"https://ela.st/es-deprecation-9-transform-destination-index",
108108
"This index was created in version ["
109109
+ OLD_VERSION.toReleaseVersion()
110-
+ "] and requires action before upgrading to " + Version.CURRENT.major + ".0. "
110+
+ "] and requires action before upgrading to "
111+
+ Version.CURRENT.major
112+
+ ".0. "
111113
+ "The following transforms are configured to write to this index: [test-transform]. Refer to the "
112114
+ "migration guide to learn more about how to prepare transforms destination indices for your upgrade.",
113115
false,
@@ -133,7 +135,9 @@ public void testOldIndicesCheckWithMultipleTransforms() {
133135
"https://ela.st/es-deprecation-9-transform-destination-index",
134136
"This index was created in version ["
135137
+ OLD_VERSION.toReleaseVersion()
136-
+ "] and requires action before upgrading to " + Version.CURRENT.major + ".0. "
138+
+ "] and requires action before upgrading to "
139+
+ Version.CURRENT.major
140+
+ ".0. "
137141
+ "The following transforms are configured to write to this index: [test-transform1, test-transform2]. Refer to the "
138142
+ "migration guide to learn more about how to prepare transforms destination indices for your upgrade.",
139143
false,
@@ -163,7 +167,9 @@ public void testMultipleOldIndicesCheckWithTransforms() {
163167
"https://ela.st/es-deprecation-9-transform-destination-index",
164168
"This index was created in version ["
165169
+ OLD_VERSION.toReleaseVersion()
166-
+ "] and requires action before upgrading to " + Version.CURRENT.major + ".0. "
170+
+ "] and requires action before upgrading to "
171+
+ Version.CURRENT.major
172+
+ ".0. "
167173
+ "The following transforms are configured to write to this index: [test-transform1]. Refer to the "
168174
+ "migration guide to learn more about how to prepare transforms destination indices for your upgrade.",
169175
false,
@@ -178,7 +184,9 @@ public void testMultipleOldIndicesCheckWithTransforms() {
178184
"https://ela.st/es-deprecation-9-transform-destination-index",
179185
"This index was created in version ["
180186
+ OLD_VERSION.toReleaseVersion()
181-
+ "] and requires action before upgrading to " + Version.CURRENT.major + ".0. "
187+
+ "] and requires action before upgrading to "
188+
+ Version.CURRENT.major
189+
+ ".0. "
182190
+ "The following transforms are configured to write to this index: [test-transform2]. Refer to the "
183191
+ "migration guide to learn more about how to prepare transforms destination indices for your upgrade.",
184192
false,
@@ -335,7 +343,9 @@ public void testOldTransformIndicesIgnoredCheck() {
335343
"https://ela.st/es-deprecation-9-transform-destination-index",
336344
"This index was created in version ["
337345
+ OLD_VERSION.toReleaseVersion()
338-
+ "] and will be supported as a read-only index in " + Version.CURRENT.major + ".0. "
346+
+ "] and will be supported as a read-only index in "
347+
+ Version.CURRENT.major
348+
+ ".0. "
339349
+ "The following transforms are no longer able to write to this index: [test-transform]. Refer to the "
340350
+ "migration guide to learn more about how to handle your transforms destination indices.",
341351
false,
@@ -361,7 +371,9 @@ public void testOldIndicesIgnoredCheckWithMultipleTransforms() {
361371
"https://ela.st/es-deprecation-9-transform-destination-index",
362372
"This index was created in version ["
363373
+ OLD_VERSION.toReleaseVersion()
364-
+ "] and will be supported as a read-only index in " + Version.CURRENT.major + ".0. "
374+
+ "] and will be supported as a read-only index in "
375+
+ Version.CURRENT.major
376+
+ ".0. "
365377
+ "The following transforms are no longer able to write to this index: [test-transform1, test-transform2]. Refer to the "
366378
+ "migration guide to learn more about how to handle your transforms destination indices.",
367379
false,
@@ -391,7 +403,9 @@ public void testMultipleOldIndicesIgnoredCheckWithTransforms() {
391403
"https://ela.st/es-deprecation-9-transform-destination-index",
392404
"This index was created in version ["
393405
+ OLD_VERSION.toReleaseVersion()
394-
+ "] and will be supported as a read-only index in " + Version.CURRENT.major + ".0. "
406+
+ "] and will be supported as a read-only index in "
407+
+ Version.CURRENT.major
408+
+ ".0. "
395409
+ "The following transforms are no longer able to write to this index: [test-transform1]. Refer to the "
396410
+ "migration guide to learn more about how to handle your transforms destination indices.",
397411
false,
@@ -406,7 +420,9 @@ public void testMultipleOldIndicesIgnoredCheckWithTransforms() {
406420
"https://ela.st/es-deprecation-9-transform-destination-index",
407421
"This index was created in version ["
408422
+ OLD_VERSION.toReleaseVersion()
409-
+ "] and will be supported as a read-only index in " + Version.CURRENT.major + ".0. "
423+
+ "] and will be supported as a read-only index in "
424+
+ Version.CURRENT.major
425+
+ ".0. "
410426
+ "The following transforms are no longer able to write to this index: [test-transform2]. Refer to the "
411427
+ "migration guide to learn more about how to handle your transforms destination indices.",
412428
false,

0 commit comments

Comments
 (0)