Browse Source

adjusted serialization versioning after backporting #44161 to 7 dot x

Martijn van Groningen 6 years ago
parent
commit
7c8aae14dc

+ 2 - 4
server/src/main/java/org/elasticsearch/action/ingest/SimulateDocumentBaseResult.java

@@ -84,8 +84,7 @@ public final class SimulateDocumentBaseResult implements SimulateDocumentResult
      * Read from a stream.
      */
     public SimulateDocumentBaseResult(StreamInput in) throws IOException {
-        // TODO: s/V_8_0_0/V_7_4_0 when change has been backported
-        if (in.getVersion().onOrAfter(Version.V_8_0_0)) {
+        if (in.getVersion().onOrAfter(Version.V_7_4_0)) {
             failure = in.readException();
             ingestDocument = in.readOptionalWriteable(WriteableIngestDocument::new);
         } else {
@@ -101,8 +100,7 @@ public final class SimulateDocumentBaseResult implements SimulateDocumentResult
 
     @Override
     public void writeTo(StreamOutput out) throws IOException {
-        // TODO: s/V_8_0_0/V_7_4_0 when change has been backported
-        if (out.getVersion().onOrAfter(Version.V_8_0_0)) {
+        if (out.getVersion().onOrAfter(Version.V_7_4_0)) {
             out.writeException(failure);
             out.writeOptionalWriteable(ingestDocument);
         } else {