You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[Monitoring] Remove include_type_name parameter from GET _template request (#38926)
Backport of #38818 to `7.0`. Original description:
The HTTP exporter code in the Monitoring plugin makes `GET _template` requests to check for existence of templates. These requests don't need to pass the `include_type_name` query parameter so this PR removes it from the request. This should remove the following deprecation log entries on the Monitoring cluster in 7.0.0 onwards:
```
[types removal] Specifying include_type_name in get index template requests is deprecated.
```
Copy file name to clipboardExpand all lines: x-pack/plugin/monitoring/src/main/java/org/elasticsearch/xpack/monitoring/exporter/http/ClusterAlertHttpResource.java
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -105,7 +105,7 @@ protected void doCheck(final RestClient client, final ActionListener<Boolean> li
Copy file name to clipboardExpand all lines: x-pack/plugin/monitoring/src/main/java/org/elasticsearch/xpack/monitoring/exporter/http/PipelineHttpResource.java
Copy file name to clipboardExpand all lines: x-pack/plugin/monitoring/src/main/java/org/elasticsearch/xpack/monitoring/exporter/http/PublishableHttpResource.java
+18-10Lines changed: 18 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -70,7 +70,7 @@ public abstract class PublishableHttpResource extends HttpResource {
Copy file name to clipboardExpand all lines: x-pack/plugin/monitoring/src/main/java/org/elasticsearch/xpack/monitoring/exporter/http/TemplateHttpResource.java
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -41,7 +41,6 @@ public class TemplateHttpResource extends PublishableHttpResource {
Copy file name to clipboardExpand all lines: x-pack/plugin/monitoring/src/test/java/org/elasticsearch/xpack/monitoring/exporter/http/AbstractPublishableHttpResourceTestCase.java
Copy file name to clipboardExpand all lines: x-pack/plugin/monitoring/src/test/java/org/elasticsearch/xpack/monitoring/exporter/http/ClusterAlertHttpResourceTests.java
+4-3Lines changed: 4 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -7,6 +7,7 @@
7
7
8
8
importjava.io.IOException;
9
9
importjava.io.InputStream;
10
+
importjava.util.Collections;
10
11
importjava.util.HashMap;
11
12
importjava.util.Map;
12
13
importorg.apache.http.HttpEntity;
@@ -127,11 +128,11 @@ public void testDoCheckWithExceptionAsDeleteWatchError() throws IOException {
0 commit comments