From dbc522f347de857f3dc692d53ab2256fec8575da Mon Sep 17 00:00:00 2001 From: "Daniel Doubrovkine (dB.)" Date: Fri, 17 Dec 2021 14:34:50 +0000 Subject: [PATCH] Increment version to 1.2.3 (#1758) * Increment version to 1.2.3. Signed-off-by: dblock * Use a different version than 1.2.3 in the test. Signed-off-by: dblock --- .ci/bwcVersions | 1 + buildSrc/version.properties | 2 +- server/src/main/java/org/opensearch/Version.java | 3 ++- server/src/test/java/org/opensearch/BuildTests.java | 2 +- 4 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.ci/bwcVersions b/.ci/bwcVersions index b9e535d060200..890beb10368d1 100644 --- a/.ci/bwcVersions +++ b/.ci/bwcVersions @@ -80,3 +80,4 @@ BWC_VERSION: - "1.1.1" - "1.2.0" - "1.2.1" + - "1.2.2" diff --git a/buildSrc/version.properties b/buildSrc/version.properties index c5ff7c0cd361e..5113360d44a40 100644 --- a/buildSrc/version.properties +++ b/buildSrc/version.properties @@ -1,4 +1,4 @@ -opensearch = 1.2.2 +opensearch = 1.2.3 lucene = 8.10.1 bundled_jdk_vendor = adoptopenjdk diff --git a/server/src/main/java/org/opensearch/Version.java b/server/src/main/java/org/opensearch/Version.java index 32da1d384d321..019de4aa00264 100644 --- a/server/src/main/java/org/opensearch/Version.java +++ b/server/src/main/java/org/opensearch/Version.java @@ -77,7 +77,8 @@ public class Version implements Comparable, ToXContentFragment { 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_1_2_1 = new Version(1020199, org.apache.lucene.util.Version.LUCENE_8_10_1); public static final Version V_1_2_2 = new Version(1020299, org.apache.lucene.util.Version.LUCENE_8_10_1); - public static final Version CURRENT = V_1_2_2; + public static final Version V_1_2_3 = new Version(1020399, org.apache.lucene.util.Version.LUCENE_8_10_1); + public static final Version CURRENT = V_1_2_3; public static Version readVersion(StreamInput in) throws IOException { return fromId(in.readVInt()); diff --git a/server/src/test/java/org/opensearch/BuildTests.java b/server/src/test/java/org/opensearch/BuildTests.java index 89a2184c11d64..4cac928119d32 100644 --- a/server/src/test/java/org/opensearch/BuildTests.java +++ b/server/src/test/java/org/opensearch/BuildTests.java @@ -179,7 +179,7 @@ public void testEqualsAndHashCode() { ); assertNotEquals(build, differentSnapshot); - Build differentVersion = new Build(build.type(), build.hash(), build.date(), build.isSnapshot(), "1.2.3", build.getDistribution()); + Build differentVersion = new Build(build.type(), build.hash(), build.date(), build.isSnapshot(), "0.1.2", build.getDistribution()); assertNotEquals(build, differentVersion); }