Add staged version 1.1.1 (#1506)
Signed-off-by: Nicholas Walter Knize <nknize@apache.org>
This commit is contained in:
parent
4c42c142cb
commit
ac37cc99b2
|
@ -77,4 +77,5 @@ BWC_VERSION:
|
|||
- "1.0.0"
|
||||
- "1.0.1"
|
||||
- "1.1.0"
|
||||
- "1.1.1"
|
||||
- "1.2.0"
|
||||
|
|
|
@ -174,7 +174,10 @@ public class BwcVersions {
|
|||
|
||||
private void assertNoOlderThanTwoMajors() {
|
||||
Set<Integer> majors = groupByMajor.keySet();
|
||||
if (majors.size() != 2 && currentVersion.getMinor() != 0 && currentVersion.getRevision() != 0) {
|
||||
// until OpenSearch 3.0 we will need to carry three major support
|
||||
// (1, 7, 6) && (2, 1, 7) since OpenSearch 1.0 === Legacy 7.x
|
||||
int numSupportedMajors = (currentVersion.getMajor() < 3) ? 3 : 2;
|
||||
if (majors.size() != numSupportedMajors && currentVersion.getMinor() != 0 && currentVersion.getRevision() != 0) {
|
||||
throw new IllegalStateException("Expected exactly 2 majors in parsed versions but found: " + majors);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -73,6 +73,7 @@ public class Version implements Comparable<Version>, ToXContentFragment {
|
|||
public static final Version V_1_0_0 = new Version(1000099, org.apache.lucene.util.Version.LUCENE_8_8_2);
|
||||
public static final Version V_1_0_1 = new Version(1000199, org.apache.lucene.util.Version.LUCENE_8_8_2);
|
||||
public static final Version V_1_1_0 = new Version(1010099, org.apache.lucene.util.Version.LUCENE_8_9_0);
|
||||
public static final Version V_1_1_1 = new Version(1010199, org.apache.lucene.util.Version.LUCENE_8_9_0);
|
||||
public static final Version V_1_2_0 = new Version(1020099, org.apache.lucene.util.Version.LUCENE_8_10_1);
|
||||
public static final Version V_2_0_0 = new Version(2000099, org.apache.lucene.util.Version.LUCENE_8_10_1);
|
||||
public static final Version CURRENT = V_2_0_0;
|
||||
|
|
Loading…
Reference in New Issue