Skip to content

Commit b3cc802

Browse files
authored
Change the version to 2.18 as term-check fallback is merged to 2.x (opensearch-project#16062)
Signed-off-by: Rajiv Kumar Vaidyanathan <rajivkv@amazon.com>
1 parent 6a29119 commit b3cc802

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

server/src/main/java/org/opensearch/action/support/clustermanager/term/GetTermVersionResponse.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public GetTermVersionResponse(ClusterStateTermVersion clusterStateTermVersion, b
4141
public GetTermVersionResponse(StreamInput in) throws IOException {
4242
super(in);
4343
this.clusterStateTermVersion = new ClusterStateTermVersion(in);
44-
if (in.getVersion().onOrAfter(Version.V_3_0_0)) {
44+
if (in.getVersion().onOrAfter(Version.V_2_18_0)) {
4545
this.isStatePresentInRemote = in.readOptionalBoolean();
4646
} else {
4747
this.isStatePresentInRemote = false;
@@ -51,7 +51,7 @@ public GetTermVersionResponse(StreamInput in) throws IOException {
5151
@Override
5252
public void writeTo(StreamOutput out) throws IOException {
5353
clusterStateTermVersion.writeTo(out);
54-
if (out.getVersion().onOrAfter(Version.V_3_0_0)) {
54+
if (out.getVersion().onOrAfter(Version.V_2_18_0)) {
5555
out.writeOptionalBoolean(isStatePresentInRemote);
5656
}
5757
}

0 commit comments

Comments
 (0)