Skip to content

Commit 163eaac

Browse files
Correct Version Constant in NodeStats
In elastic#54008 we used v7.8 here but never backported to 7.x. now that 7.x has moved to 7.8 BwC serialization is broken => adjusting the constant here until we backport.
1 parent f9ab47f commit 163eaac

File tree

1 file changed

+2
-2
lines changed
  • server/src/main/java/org/elasticsearch/action/admin/cluster/node/stats

1 file changed

+2
-2
lines changed

server/src/main/java/org/elasticsearch/action/admin/cluster/node/stats/NodeStats.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ public NodeStats(StreamInput in) throws IOException {
113113
discoveryStats = in.readOptionalWriteable(DiscoveryStats::new);
114114
ingestStats = in.readOptionalWriteable(IngestStats::new);
115115
adaptiveSelectionStats = in.readOptionalWriteable(AdaptiveSelectionStats::new);
116-
if (in.getVersion().onOrAfter(Version.V_7_8_0)) {
116+
if (in.getVersion().onOrAfter(Version.V_8_0_0)) {
117117
scriptCacheStats = in.readOptionalWriteable(ScriptCacheStats::new);
118118
} else {
119119
scriptCacheStats = null;
@@ -266,7 +266,7 @@ public void writeTo(StreamOutput out) throws IOException {
266266
out.writeOptionalWriteable(discoveryStats);
267267
out.writeOptionalWriteable(ingestStats);
268268
out.writeOptionalWriteable(adaptiveSelectionStats);
269-
if (out.getVersion().onOrAfter(Version.V_7_8_0)) {
269+
if (out.getVersion().onOrAfter(Version.V_8_0_0)) {
270270
out.writeOptionalWriteable(scriptCacheStats);
271271
}
272272
}

0 commit comments

Comments
 (0)