Skip to content

Commit d5a95b8

Browse files
RS146BIJAYRishav Sagar
and
Rishav Sagar
authored
Changing unrefernced file cleanup stats based MergeStats metrics version to 2.11 (#10336)
Signed-off-by: Rishav Sagar <rissag@amazon.com> Co-authored-by: Rishav Sagar <rissag@amazon.com>
1 parent bddf0d3 commit d5a95b8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

server/src/main/java/org/opensearch/index/merge/MergeStats.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ public MergeStats(StreamInput in) throws IOException {
8282
totalStoppedTimeInMillis = in.readVLong();
8383
totalThrottledTimeInMillis = in.readVLong();
8484
totalBytesPerSecAutoThrottle = in.readVLong();
85-
if (in.getVersion().onOrAfter(Version.V_3_0_0)) {
85+
if (in.getVersion().onOrAfter(Version.V_2_11_0)) {
8686
unreferencedFileCleanUpsPerformed = in.readOptionalVLong();
8787
}
8888
}
@@ -297,7 +297,7 @@ public void writeTo(StreamOutput out) throws IOException {
297297
out.writeVLong(totalStoppedTimeInMillis);
298298
out.writeVLong(totalThrottledTimeInMillis);
299299
out.writeVLong(totalBytesPerSecAutoThrottle);
300-
if (out.getVersion().onOrAfter(Version.V_3_0_0)) {
300+
if (out.getVersion().onOrAfter(Version.V_2_11_0)) {
301301
out.writeOptionalVLong(unreferencedFileCleanUpsPerformed);
302302
}
303303
}

0 commit comments

Comments
 (0)