Skip to content

Commit 8a9055a

Browse files
authored
Adjust BWC after backport of elastic#64561 (HTTP client stats) (elastic#70508)
1 parent b80c99b commit 8a9055a

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

rest-api-spec/src/main/resources/rest-api-spec/test/nodes.stats/11_indices_metrics.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -289,8 +289,8 @@
289289
"Metric - http":
290290
- skip:
291291
features: [arbitrary_key]
292-
version: " - 7.99.99"
293-
reason: "change after backporting"
292+
version: " - 7.12.99"
293+
reason: "HTTP client stats added in 7.13.0"
294294
- do:
295295
nodes.info: {}
296296
- set:

server/src/main/java/org/elasticsearch/http/HttpStats.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public HttpStats(long serverOpen, long totalOpened) {
3838
public HttpStats(StreamInput in) throws IOException {
3939
serverOpen = in.readVLong();
4040
totalOpen = in.readVLong();
41-
if (in.getVersion().onOrAfter(Version.V_8_0_0)) {
41+
if (in.getVersion().onOrAfter(Version.V_7_13_0)) {
4242
clientStats = in.readList(ClientStats::new);
4343
} else {
4444
clientStats = List.of();
@@ -49,7 +49,7 @@ public HttpStats(StreamInput in) throws IOException {
4949
public void writeTo(StreamOutput out) throws IOException {
5050
out.writeVLong(serverOpen);
5151
out.writeVLong(totalOpen);
52-
if (out.getVersion().onOrAfter(Version.V_8_0_0)) {
52+
if (out.getVersion().onOrAfter(Version.V_7_13_0)) {
5353
out.writeList(clientStats);
5454
}
5555
}

0 commit comments

Comments
 (0)