From 1e69b4d0e642a5cec512f572abb4afd148b4c526 Mon Sep 17 00:00:00 2001 From: Armin Braun Date: Mon, 14 Sep 2020 03:53:29 +0200 Subject: [PATCH] Fix Broken DeleteDataStreamAction BwC Serialization This version was adjusted in 7.x but not in `master` causing all the BwC tests to fail. --- .../xpack/core/action/DeleteDataStreamAction.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/action/DeleteDataStreamAction.java b/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/action/DeleteDataStreamAction.java index 85ebcb25b5712..542e5e9da736f 100644 --- a/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/action/DeleteDataStreamAction.java +++ b/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/action/DeleteDataStreamAction.java @@ -65,14 +65,14 @@ public ActionRequestValidationException validate() { public Request(StreamInput in) throws IOException { super(in); this.names = in.readStringArray(); - this.wildcardExpressionsOriginallySpecified = in.getVersion().onOrAfter(Version.V_8_0_0) && in.readBoolean(); + this.wildcardExpressionsOriginallySpecified = in.getVersion().onOrAfter(Version.V_7_10_0) && in.readBoolean(); } @Override public void writeTo(StreamOutput out) throws IOException { super.writeTo(out); out.writeStringArray(names); - if (out.getVersion().onOrAfter(Version.V_8_0_0)) { + if (out.getVersion().onOrAfter(Version.V_7_10_0)) { out.writeBoolean(wildcardExpressionsOriginallySpecified); } }