From e6ca55bca6942ca4bc0c892a81fec01071b13796 Mon Sep 17 00:00:00 2001 From: Nhat Nguyen Date: Sun, 9 Sep 2018 21:34:11 -0400 Subject: [PATCH] Adjust bwc for stale primary recovery source (#33432) Relates #33432 --- .../org/elasticsearch/cluster/routing/RecoverySource.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/src/main/java/org/elasticsearch/cluster/routing/RecoverySource.java b/server/src/main/java/org/elasticsearch/cluster/routing/RecoverySource.java index 2502fb0f3cc..b7cc95298c4 100644 --- a/server/src/main/java/org/elasticsearch/cluster/routing/RecoverySource.java +++ b/server/src/main/java/org/elasticsearch/cluster/routing/RecoverySource.java @@ -142,7 +142,7 @@ public abstract class RecoverySource implements Writeable, ToXContentObject { } private ExistingStoreRecoverySource(StreamInput in) throws IOException { - if (in.getVersion().onOrAfter(Version.V_7_0_0_alpha1)) { + if (in.getVersion().onOrAfter(Version.V_6_5_0)) { bootstrapNewHistoryUUID = in.readBoolean(); } else { bootstrapNewHistoryUUID = false; @@ -156,7 +156,7 @@ public abstract class RecoverySource implements Writeable, ToXContentObject { @Override protected void writeAdditionalFields(StreamOutput out) throws IOException { - if (out.getVersion().onOrAfter(Version.V_7_0_0_alpha1)) { + if (out.getVersion().onOrAfter(Version.V_6_5_0)) { out.writeBoolean(bootstrapNewHistoryUUID); } }