Skip to content

Commit 72388cd

Browse files
Updating PivotConfig max_page_search_size deprecation warning to critical (#117051) (#117268)
Backport #117051
1 parent 0a9883c commit 72388cd

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/transform/transforms/pivot/PivotConfig.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ public void checkForDeprecations(String id, NamedXContentRegistry namedXContentR
184184
onDeprecation.accept(
185185
// max_page_search_size got deprecated in 7.8, still accepted for 8.x, to be removed in 9.x
186186
new DeprecationIssue(
187-
Level.WARNING,
187+
Level.CRITICAL,
188188
"Transform [" + id + "] uses the deprecated setting [max_page_search_size]",
189189
TransformDeprecations.MAX_PAGE_SEARCH_SIZE_BREAKING_CHANGES_URL,
190190
TransformDeprecations.ACTION_MAX_PAGE_SEARCH_SIZE_IS_DEPRECATED,

x-pack/plugin/core/src/test/java/org/elasticsearch/xpack/core/transform/transforms/TransformConfigTests.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -930,7 +930,7 @@ public void testCheckForDeprecations() {
930930
equalTo(
931931
Collections.singletonList(
932932
new DeprecationIssue(
933-
Level.WARNING,
933+
Level.CRITICAL,
934934
"Transform [" + id + "] uses the deprecated setting [max_page_search_size]",
935935
TransformDeprecations.MAX_PAGE_SEARCH_SIZE_BREAKING_CHANGES_URL,
936936
TransformDeprecations.ACTION_MAX_PAGE_SEARCH_SIZE_IS_DEPRECATED,
@@ -952,7 +952,7 @@ public void testCheckForDeprecations() {
952952
equalTo(
953953
List.of(
954954
new DeprecationIssue(
955-
Level.WARNING,
955+
Level.CRITICAL,
956956
"Transform [" + id + "] uses the deprecated setting [max_page_search_size]",
957957
TransformDeprecations.MAX_PAGE_SEARCH_SIZE_BREAKING_CHANGES_URL,
958958
TransformDeprecations.ACTION_MAX_PAGE_SEARCH_SIZE_IS_DEPRECATED,
@@ -982,7 +982,7 @@ public void testCheckForDeprecations() {
982982
null
983983
),
984984
new DeprecationIssue(
985-
Level.WARNING,
985+
Level.CRITICAL,
986986
"Transform [" + id + "] uses the deprecated setting [max_page_search_size]",
987987
TransformDeprecations.MAX_PAGE_SEARCH_SIZE_BREAKING_CHANGES_URL,
988988
TransformDeprecations.ACTION_MAX_PAGE_SEARCH_SIZE_IS_DEPRECATED,

0 commit comments

Comments
 (0)