From 1cbccb12543183f3f9ee7cdf97120c523f939425 Mon Sep 17 00:00:00 2001 From: Nhat Nguyen Date: Sun, 10 Jan 2021 16:49:34 -0500 Subject: [PATCH] Adjust wire compat version for point in time Relates #66713 --- .../elasticsearch/search/internal/ShardSearchContextId.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/src/main/java/org/elasticsearch/search/internal/ShardSearchContextId.java b/server/src/main/java/org/elasticsearch/search/internal/ShardSearchContextId.java index 03d3dc5fdbdcd..3baacacf1cd3f 100644 --- a/server/src/main/java/org/elasticsearch/search/internal/ShardSearchContextId.java +++ b/server/src/main/java/org/elasticsearch/search/internal/ShardSearchContextId.java @@ -50,7 +50,7 @@ public ShardSearchContextId(StreamInput in) throws IOException { } else { this.sessionId = ""; } - if (in.getVersion().onOrAfter(Version.V_8_0_0)) { + if (in.getVersion().onOrAfter(Version.V_7_12_0)) { this.searcherId = in.readOptionalString(); } else { this.searcherId = null; @@ -63,7 +63,7 @@ public void writeTo(StreamOutput out) throws IOException { if (out.getVersion().onOrAfter(Version.V_7_7_0)) { out.writeString(sessionId); } - if (out.getVersion().onOrAfter(Version.V_8_0_0)) { + if (out.getVersion().onOrAfter(Version.V_7_12_0)) { out.writeOptionalString(searcherId); } }