Add version 5.0.3

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

Relates #21867
This commit is contained in:
Jason Tedor 2016-11-29 16:10:15 -05:00
parent 404b42ee95
commit b6ba4ae34b
10 changed files with 13 additions and 16 deletions

View File

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

View File

@ -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 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 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 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 int V_5_0_2_ID = 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 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 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 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 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; public static final int V_5_2_0_ID_UNRELEASED = 5020099;
@ -129,8 +129,8 @@ public class Version {
return V_5_1_0_UNRELEASED; return V_5_1_0_UNRELEASED;
case V_5_0_3_ID_UNRELEASED: case V_5_0_3_ID_UNRELEASED:
return V_5_0_3_UNRELEASED; return V_5_0_3_UNRELEASED;
case V_5_0_2_ID_UNRELEASED: case V_5_0_2_ID:
return V_5_0_2_UNRELEASED; return V_5_0_2;
case V_5_0_1_ID: case V_5_0_1_ID:
return V_5_0_1; return V_5_0_1;
case V_5_0_0_ID: case V_5_0_0_ID:

View File

@ -840,11 +840,9 @@ public class ExceptionSerializationTests extends ESTestCase {
public void testShardLockObtainFailedException() throws IOException { public void testShardLockObtainFailedException() throws IOException {
ShardId shardId = new ShardId("foo", "_na_", 1); ShardId shardId = new ShardId("foo", "_na_", 1);
ShardLockObtainFailedException orig = new ShardLockObtainFailedException(shardId, "boom"); ShardLockObtainFailedException orig = new ShardLockObtainFailedException(shardId, "boom");
Version version = VersionUtils.randomVersionBetween(random(), Version version = VersionUtils.randomVersionBetween(random(), Version.V_5_0_0, Version.CURRENT);
Version.V_5_0_0, Version.CURRENT); if (version.before(Version.V_5_0_2)) {
if (version.before(Version.V_5_0_2_UNRELEASED)) { version = Version.V_5_0_2;
// 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;
} }
ShardLockObtainFailedException ex = serialize(orig, version); ShardLockObtainFailedException ex = serialize(orig, version);
assertEquals(orig.getMessage(), ex.getMessage()); assertEquals(orig.getMessage(), ex.getMessage());

Binary file not shown.

Binary file not shown.

View File

@ -1 +0,0 @@
5f01da7306363fad2028b916f3eab926262de928

View File

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