Browse Source

Add version 5.0.3

This commit adds version 5.0.3 and the BWC indices for version 5.0.2.

Relates #21867
Jason Tedor 9 years ago
parent
commit
b6ba4ae34b

+ 1 - 1
core/licenses/hppc-0.7.1.jar.sha1

@@ -1 +1 @@
-8b5057f74ea378c0150a1860874a3ebdcb713767
+8b5057f74ea378c0150a1860874a3ebdcb713767

+ 1 - 1
core/licenses/jts-1.13.jar.sha1

@@ -1 +1 @@
-3ccfb9b60f04d71add996a666ceb8902904fd805
+3ccfb9b60f04d71add996a666ceb8902904fd805

+ 1 - 1
core/licenses/t-digest-3.0.jar.sha1

@@ -1 +1 @@
-84ccf145ac2215e6bfa63baa3101c0af41017cfc
+84ccf145ac2215e6bfa63baa3101c0af41017cfc

+ 1 - 2
core/src/main/java/org/elasticsearch/ElasticsearchException.java

@@ -721,8 +721,7 @@ public class ElasticsearchException extends RuntimeException implements ToXConte
         TASK_CANCELLED_EXCEPTION(org.elasticsearch.tasks.TaskCancelledException.class,
             org.elasticsearch.tasks.TaskCancelledException::new, 146, Version.V_5_1_0_UNRELEASED),
         SHARD_LOCK_OBTAIN_FAILED_EXCEPTION(org.elasticsearch.env.ShardLockObtainFailedException.class,
-                                           org.elasticsearch.env.ShardLockObtainFailedException::new, 147, Version.V_5_0_2_UNRELEASED);
-
+                                           org.elasticsearch.env.ShardLockObtainFailedException::new, 147, Version.V_5_0_2);
 
         final Class<? extends ElasticsearchException> exceptionClass;
         final FunctionThatThrowsIOException<StreamInput, ? extends ElasticsearchException> constructor;

+ 5 - 5
core/src/main/java/org/elasticsearch/Version.java

@@ -95,10 +95,10 @@ public class Version {
     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_5_0_1_ID = 5000199;
     public static final Version V_5_0_1 = new Version(V_5_0_1_ID, org.apache.lucene.util.Version.LUCENE_6_2_1);
-    public static final int V_5_0_2_ID_UNRELEASED = 5000299;
-    public static final Version V_5_0_2_UNRELEASED = new Version(V_5_0_2_ID_UNRELEASED, org.apache.lucene.util.Version.LUCENE_6_2_1);
+    public static final int V_5_0_2_ID = 5000299;
+    public static final Version V_5_0_2 = new Version(V_5_0_2_ID, org.apache.lucene.util.Version.LUCENE_6_2_1);
     public static final int V_5_0_3_ID_UNRELEASED = 5000399;
-    public static final Version V_5_0_3_UNRELEASED = new Version(V_5_0_3_ID_UNRELEASED, org.apache.lucene.util.Version.LUCENE_6_2_1);
+    public static final Version V_5_0_3_UNRELEASED = new Version(V_5_0_3_ID_UNRELEASED, org.apache.lucene.util.Version.LUCENE_6_3_0);
     public static final int V_5_1_0_ID_UNRELEASED = 5010099;
     public static final Version V_5_1_0_UNRELEASED = new Version(V_5_1_0_ID_UNRELEASED, org.apache.lucene.util.Version.LUCENE_6_3_0);
     public static final int V_5_2_0_ID_UNRELEASED = 5020099;
@@ -129,8 +129,8 @@ public class Version {
                 return V_5_1_0_UNRELEASED;
             case V_5_0_3_ID_UNRELEASED:
                 return V_5_0_3_UNRELEASED;
-            case V_5_0_2_ID_UNRELEASED:
-                return V_5_0_2_UNRELEASED;
+            case V_5_0_2_ID:
+                return V_5_0_2;
             case V_5_0_1_ID:
                 return V_5_0_1;
             case V_5_0_0_ID:

+ 3 - 5
core/src/test/java/org/elasticsearch/ExceptionSerializationTests.java

@@ -840,11 +840,9 @@ public class ExceptionSerializationTests extends ESTestCase {
     public void testShardLockObtainFailedException() throws IOException {
         ShardId shardId = new ShardId("foo", "_na_", 1);
         ShardLockObtainFailedException orig = new ShardLockObtainFailedException(shardId, "boom");
-        Version version = VersionUtils.randomVersionBetween(random(),
-            Version.V_5_0_0, Version.CURRENT);
-        if (version.before(Version.V_5_0_2_UNRELEASED)) {
-            // remove this once 5_0_2 is released randomVersionBetween asserts that this version is in the constant table..
-            version = Version.V_5_0_2_UNRELEASED;
+        Version version = VersionUtils.randomVersionBetween(random(), Version.V_5_0_0, Version.CURRENT);
+        if (version.before(Version.V_5_0_2)) {
+            version = Version.V_5_0_2;
         }
         ShardLockObtainFailedException ex = serialize(orig, version);
         assertEquals(orig.getMessage(), ex.getMessage());

BIN
core/src/test/resources/indices/bwc/index-5.0.2.zip


BIN
core/src/test/resources/indices/bwc/repo-5.0.2.zip


+ 0 - 1
distribution/licenses/joda-time-2.9.5.jar.sha1

@@ -1 +0,0 @@
-5f01da7306363fad2028b916f3eab926262de928

+ 1 - 0
qa/vagrant/versions

@@ -1,2 +1,3 @@
 5.0.0
 5.0.1
+5.0.2