Remove unreleased version, these versons should be added once they are released

This commit is contained in:
Simon Willnauer 2016-09-08 20:40:18 +02:00
parent 27ff4f327c
commit 51de39f21b
3 changed files with 0 additions and 10 deletions

View File

@ -87,10 +87,6 @@ public class Version {
public static final Version V_5_0_0_alpha5 = new Version(V_5_0_0_alpha5_ID, org.apache.lucene.util.Version.LUCENE_6_1_0); public static final Version V_5_0_0_alpha5 = new Version(V_5_0_0_alpha5_ID, org.apache.lucene.util.Version.LUCENE_6_1_0);
public static final int V_5_0_0_alpha6_ID = 5000006; public static final int V_5_0_0_alpha6_ID = 5000006;
public static final Version V_5_0_0_alpha6 = new Version(V_5_0_0_alpha6_ID, org.apache.lucene.util.Version.LUCENE_6_2_0); public static final Version V_5_0_0_alpha6 = new Version(V_5_0_0_alpha6_ID, org.apache.lucene.util.Version.LUCENE_6_2_0);
public static final int V_5_0_0_beta1_ID = 5000026;
public static final Version V_5_0_0_beta1 = new Version(V_5_0_0_beta1_ID, org.apache.lucene.util.Version.LUCENE_6_2_0);
public static final int V_5_0_0_ID = 5000099;
public static final Version V_5_0_0 = new Version(V_5_0_0_ID, org.apache.lucene.util.Version.LUCENE_6_2_0);
public static final int V_6_0_0_alpha1_ID = 6000001; public static final int V_6_0_0_alpha1_ID = 6000001;
public static final Version V_6_0_0_alpha1 = new Version(V_6_0_0_alpha1_ID, org.apache.lucene.util.Version.LUCENE_6_2_0); public static final Version V_6_0_0_alpha1 = new Version(V_6_0_0_alpha1_ID, org.apache.lucene.util.Version.LUCENE_6_2_0);
public static final Version CURRENT = V_6_0_0_alpha1; public static final Version CURRENT = V_6_0_0_alpha1;
@ -108,10 +104,6 @@ public class Version {
switch (id) { switch (id) {
case V_6_0_0_alpha1_ID: case V_6_0_0_alpha1_ID:
return V_6_0_0_alpha1; return V_6_0_0_alpha1;
case V_5_0_0_ID:
return V_5_0_0;
case V_5_0_0_beta1_ID:
return V_5_0_0_beta1;
case V_5_0_0_alpha6_ID: case V_5_0_0_alpha6_ID:
return V_5_0_0_alpha6; return V_5_0_0_alpha6;
case V_5_0_0_alpha5_ID: case V_5_0_0_alpha5_ID:

View File

@ -184,7 +184,6 @@ public class OldIndexBackwardsCompatibilityIT extends ESIntegTestCase {
SortedSet<String> expectedVersions = new TreeSet<>(); SortedSet<String> expectedVersions = new TreeSet<>();
for (Version v : VersionUtils.allVersions()) { for (Version v : VersionUtils.allVersions()) {
if (VersionUtils.isSnapshot(v)) continue; // snapshots are unreleased, so there is no backcompat yet if (VersionUtils.isSnapshot(v)) continue; // snapshots are unreleased, so there is no backcompat yet
if (v.onOrBefore(Version.V_5_0_0)) continue; // we have not yet released this
if (v.isAlpha()) continue; // no guarantees for alpha releases if (v.isAlpha()) continue; // no guarantees for alpha releases
if (v.onOrBefore(Version.V_2_0_0_beta1)) continue; // we can only test back one major lucene version if (v.onOrBefore(Version.V_2_0_0_beta1)) continue; // we can only test back one major lucene version
if (v.equals(Version.CURRENT)) continue; // the current version is always compatible with itself if (v.equals(Version.CURRENT)) continue; // the current version is always compatible with itself

View File

@ -98,7 +98,6 @@ public class RestoreBackwardsCompatIT extends AbstractSnapshotIntegTestCase {
if (VersionUtils.isSnapshot(v)) continue; // snapshots are unreleased, so there is no backcompat yet if (VersionUtils.isSnapshot(v)) continue; // snapshots are unreleased, so there is no backcompat yet
if (v.isAlpha()) continue; // no guarantees for alpha releases if (v.isAlpha()) continue; // no guarantees for alpha releases
if (v.onOrBefore(Version.V_2_0_0_beta1)) continue; // we can only test back one major lucene version if (v.onOrBefore(Version.V_2_0_0_beta1)) continue; // we can only test back one major lucene version
if (v.onOrBefore(Version.V_5_0_0)) continue; // we have not yet released this
if (v.equals(Version.CURRENT)) continue; // the current version is always compatible with itself if (v.equals(Version.CURRENT)) continue; // the current version is always compatible with itself
expectedVersions.add(v.toString()); expectedVersions.add(v.toString());
} }