File tree Expand file tree Collapse file tree 3 files changed +12
-8
lines changed
rest-api-spec/src/yamlRestTest/resources/rest-api-spec/test/nodes.stats
server/src/main/java/org/elasticsearch/action/admin/indices/stats Expand file tree Collapse file tree 3 files changed +12
-8
lines changed Original file line number Diff line number Diff line change @@ -145,9 +145,9 @@ tasks.register("verifyVersions") {
145145 * after the backport of the backcompat code is complete.
146146 */
147147
148- boolean bwc_tests_enabled = false
148+ boolean bwc_tests_enabled = true
149149// place a PR link here when committing bwc changes:
150- String bwc_tests_disabled_issue = " https://github.com/elastic/elasticsearch/pull/75760 "
150+ String bwc_tests_disabled_issue = " "
151151/*
152152 * FIPS 140-2 behavior was fixed in 7.11.0. Before that there is no way to run elasticsearch in a
153153 * JVM that is properly configured to be in fips mode with BCFIPS. For now we need to disable
Original file line number Diff line number Diff line change 324324" Metric - blank for indices shards " :
325325 - skip :
326326 features : [arbitrary_key]
327- version : " - 7.99 .99"
328- reason : " total shard count added in version 8 .0"
327+ version : " - 7.14 .99"
328+ reason : " total shard count added in version 7.15 .0"
329329 - do :
330330 nodes.info : {}
331331 - set :
341341" Metric - _all for indices shards " :
342342 - skip :
343343 features : [arbitrary_key]
344- version : " - 7.99 .99"
345- reason : " total shard count added in version 8 .0"
344+ version : " - 7.14 .99"
345+ reason : " total shard count added in version 7.15 .0"
346346 - do :
347347 nodes.info : {}
348348 - set :
360360
361361 - skip :
362362 features : ["allowed_warnings", arbitrary_key]
363- version : " - 7.99 .99"
364- reason : " total shard count added in version 8 .0"
363+ version : " - 7.14 .99"
364+ reason : " total shard count added in version 7.15 .0"
365365
366366 - do :
367367 indices.create :
Original file line number Diff line number Diff line change @@ -257,6 +257,8 @@ public CommonStats(StreamInput in) throws IOException {
257257 recoveryStats = in .readOptionalWriteable (RecoveryStats ::new );
258258 if (in .getVersion ().onOrAfter (Version .V_8_0_0 )) {
259259 bulk = in .readOptionalWriteable (BulkStats ::new );
260+ }
261+ if (in .getVersion ().onOrAfter (Version .V_7_15_0 )) {
260262 shards = in .readOptionalWriteable (ShardCountStats ::new );
261263 }
262264 }
@@ -281,6 +283,8 @@ public void writeTo(StreamOutput out) throws IOException {
281283 out .writeOptionalWriteable (recoveryStats );
282284 if (out .getVersion ().onOrAfter (Version .V_8_0_0 )) {
283285 out .writeOptionalWriteable (bulk );
286+ }
287+ if (out .getVersion ().onOrAfter (Version .V_7_15_0 )) {
284288 out .writeOptionalWriteable (shards );
285289 }
286290 }
You can’t perform that action at this time.
0 commit comments