diff --git a/src/main/java/org/elasticsearch/Version.java b/src/main/java/org/elasticsearch/Version.java index 8fa0286ea38..f9b5936010a 100644 --- a/src/main/java/org/elasticsearch/Version.java +++ b/src/main/java/org/elasticsearch/Version.java @@ -124,9 +124,13 @@ public class Version implements Serializable { public static final Version V_0_90_1 = new Version(V_0_90_1_ID, false, org.apache.lucene.util.Version.LUCENE_42); public static final int V_1_0_0_Beta1_ID = /*00*/1000001; - public static final Version V_1_0_0_Beta1 = new Version(V_1_0_0_Beta1_ID, true, org.apache.lucene.util.Version.LUCENE_41); + public static final Version V_1_0_0_Beta1 = new Version(V_1_0_0_Beta1_ID, true, org.apache.lucene.util.Version.LUCENE_42); public static final Version CURRENT = V_1_0_0_Beta1; + + static { + assert CURRENT.luceneVersion == Lucene.VERSION: "Version must be upgraded to [" + Lucene.VERSION + "] is still set to [" + CURRENT.luceneVersion + "]"; + } public static Version readVersion(StreamInput in) throws IOException { return fromId(in.readVInt());