Skip to content

Commit

Permalink
Updating OS Version to 2_13
Browse files Browse the repository at this point in the history
Signed-off-by: Ajay Kumar Movva <[email protected]>
  • Loading branch information
Ajay Kumar Movva committed Mar 7, 2024
1 parent 1b15b1f commit 1c6d929
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public NodeResourceUsageStats(StreamInput in) throws IOException {
this.timestamp = in.readLong();
this.cpuUtilizationPercent = in.readDouble();
this.memoryUtilizationPercent = in.readDouble();
if (in.getVersion().onOrAfter(Version.V_3_0_0)) {
if (in.getVersion().onOrAfter(Version.V_2_13_0)) {
this.ioUsageStats = in.readOptionalWriteable(IoUsageStats::new);
} else {
this.ioUsageStats = null;

Check warning on line 52 in server/src/main/java/org/opensearch/node/NodeResourceUsageStats.java

View check run for this annotation

Codecov / codecov/patch

server/src/main/java/org/opensearch/node/NodeResourceUsageStats.java#L52

Added line #L52 was not covered by tests
Expand All @@ -59,7 +59,7 @@ public void writeTo(StreamOutput out) throws IOException {
out.writeLong(this.timestamp);
out.writeDouble(this.cpuUtilizationPercent);
out.writeDouble(this.memoryUtilizationPercent);
if (out.getVersion().onOrAfter(Version.V_3_0_0)) {
if (out.getVersion().onOrAfter(Version.V_2_13_0)) {
out.writeOptionalWriteable(this.ioUsageStats);
}
}
Expand Down

0 comments on commit 1c6d929

Please sign in to comment.