# Rolling Upgrading from 1.2.1 to 1.3.0 – java.lang.IllegalArgumentException: No enum constant org.apache.lucene.util.Version.4.3.1

**URL:** <https://discuss.elastic.co/t/rolling-upgrading-from-1-2-1-to-1-3-0-java-lang-illegalargumentexception-no-enum-constant-org-apache-lucene-util-version-4-3-1/18928>\
**Category:** Elasticsearch\
**Created:** [July 28, 2014, 9:46am UTC](https://discuss.elastic.co/t/rolling-upgrading-from-1-2-1-to-1-3-0-java-lang-illegalargumentexception-no-enum-constant-org-apache-lucene-util-version-4-3-1/18928 "2014-07-28T09:46:41Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ollie](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ollie/32/1299_2.png) [@Ollie](https://discuss.elastic.co/u/Ollie)\
**Post date:** [July 28, 2014, 9:46am UTC](https://discuss.elastic.co/t/rolling-upgrading-from-1-2-1-to-1-3-0-java-lang-illegalargumentexception-no-enum-constant-org-apache-lucene-util-version-4-3-1/18928/1 "2014-07-28T09:46:41Z")

</div>

Hi,

We're upgrading our staging cluster from 1.2.1 to 1.3.0 one box at a time.  
We have stopped Elasticsearch on the first box, removed the Groovy plugin  
we were using with 1.2.1 and deployed using chef. The new box reports as  
1.3.0 but when it rejoins the cluster (of two boxes, the other box is still  
running 1.2.1) the logs fill with:

[2014-07-28 09:40:57,121][WARN][cluster.action.shard] [stg-elastic-1]  
[development][3] sending failed shard for [development][3],  
node[ob-VHwcSR3KWEJcaS8GyVA], [R], s[INITIALIZING], indexUUID [_na_],  
reason [Failed to start shard, message [IllegalArgumentException[No enum  
constant org.apache.lucene.util.Version.4.3.1]]]  
[2014-07-28 09:40:57,133][WARN][index.engine.internal] [stg-elastic-1]  
[development][4] failed engine [corrupted preexisting index]  
[2014-07-28 09:40:57,134][WARN][indices.cluster] [stg-elastic-1]  
[development][4] failed to start shard  
java.lang.IllegalArgumentException: No enum constant  
org.apache.lucene.util.Version.4.3.1  
at java.lang.Enum.valueOf(Enum.java:236)  
at org.apache.lucene.util.Version.valueOf(Version.java:32)  
at org.apache.lucene.util.Version.parseLeniently(Version.java:250)  
at  
org.elasticsearch.index.store.Store$MetadataSnapshot.buildMetadata(Store.java:451)  
at  
org.elasticsearch.index.store.Store$MetadataSnapshot.(Store.java:433)  
at org.elasticsearch.index.store.Store.getMetadata(Store.java:144)  
at  
org.elasticsearch.indices.cluster.IndicesClusterStateService.applyInitializingShard(IndicesClusterStateService.java:724)  
at  
org.elasticsearch.indices.cluster.IndicesClusterStateService.applyNewOrUpdatedShards(IndicesClusterStateService.java:576)  
at  
org.elasticsearch.indices.cluster.IndicesClusterStateService.clusterChanged(IndicesClusterStateService.java:183)  
at  
org.elasticsearch.cluster.service.InternalClusterService$UpdateTask.run(InternalClusterService.java:444)  
at  
org.elasticsearch.common.util.concurrent.PrioritizedEsThreadPoolExecutor$TieBreakingPrioritizedRunnable.run(PrioritizedEsThreadPoolExecutor.java:153)  
at  
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)  
at  
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)  
at java.lang.Thread.run(Thread.java:744)

Most of the indexes have both primary and second shards enabled but the  
index in question (development) is seen with secondaries going in and out  
of the newly upgraded node.

The documentation seems to suggest that it should be possible to do a  
rolling upgrade from 1.2.1 and that the boxes should coexist reasonably  
happily, but this does not seem to be the case. The cluster doesn't seem to  
be going green. Slightly concerned from the words 'corrupted preexisting  
index' that some damage might have been done?

We've stopped Elasticsearch on the 1.3.0 box whilst we seek your advice.

Thanks,

Ollie

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/31f56380-f1f1-4dbd-be7c-20498d5159b1%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/31f56380-f1f1-4dbd-be7c-20498d5159b1%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![Ivan](https://avatars.discourse-cdn.com/v4/letter/i/df788c/32.png) [@Ivan](https://discuss.elastic.co/u/Ivan)\
**Post date:** [July 28, 2014, 11:10pm UTC](https://discuss.elastic.co/t/rolling-upgrading-from-1-2-1-to-1-3-0-java-lang-illegalargumentexception-no-enum-constant-org-apache-lucene-util-version-4-3-1/18928/2 "2014-07-28T23:10:07Z")

</div>

There was a bug in Lucene which caused problems with Elasticsearch 1.3.0.  
You might already know this, but 1.3.1 was released today to fix this issue:

> **[Elasticsearch Platform — Find real-time answers at scale](https://www.elastic.co)**
>
> Power insights and outcomes with the Elasticsearch Platform and AI. See into your data and find answers that matter with enterprise solutions designed to help you build, observe, and protect. Try Elasticsearch free today.

The issue should only affect older versions. Your version is newer, but the  
error states "Version.4.3.1". Did you upgrade from 0.90.2 at some point? If  
so, do you ever reindex data? You might have very old segments present, so  
you should be able to solve the problem by running an  
optimize/force-merge-1 in order to upgrade those segments.

Cheers,

Ivan

On Mon, Jul 28, 2014 at 2:46 AM, Ollie [oliver.byford@idioplatform.com](mailto:oliver.byford@idioplatform.com)  
wrote:

> Hi,
> 
> We're upgrading our staging cluster from 1.2.1 to 1.3.0 one box at a time.  
> We have stopped Elasticsearch on the first box, removed the Groovy plugin  
> we were using with 1.2.1 and deployed using chef. The new box reports as  
> 1.3.0 but when it rejoins the cluster (of two boxes, the other box is still  
> running 1.2.1) the logs fill with:
> 
> [2014-07-28 09:40:57,121][WARN][cluster.action.shard]  
> [stg-elastic-1] [development][3] sending failed shard for [development][3],  
> node[ob-VHwcSR3KWEJcaS8GyVA], [R], s[INITIALIZING], indexUUID [_na_],  
> reason [Failed to start shard, message [IllegalArgumentException[No enum  
> constant org.apache.lucene.util.Version.4.3.1]]]  
> [2014-07-28 09:40:57,133][WARN][index.engine.internal]  
> [stg-elastic-1] [development][4] failed engine [corrupted preexisting index]  
> [2014-07-28 09:40:57,134][WARN][indices.cluster]  
> [stg-elastic-1] [development][4] failed to start shard  
> java.lang.IllegalArgumentException: No enum constant  
> org.apache.lucene.util.Version.4.3.1  
> at java.lang.Enum.valueOf(Enum.java:236)  
> at org.apache.lucene.util.Version.valueOf(Version.java:32)  
> at org.apache.lucene.util.Version.parseLeniently(Version.java:250)  
> at  
> org.elasticsearch.index.store.Store$MetadataSnapshot.buildMetadata(Store.java:451)  
> at  
> org.elasticsearch.index.store.Store$MetadataSnapshot.(Store.java:433)  
> at org.elasticsearch.index.store.Store.getMetadata(Store.java:144)  
> at  
> org.elasticsearch.indices.cluster.IndicesClusterStateService.applyInitializingShard(IndicesClusterStateService.java:724)  
> at  
> org.elasticsearch.indices.cluster.IndicesClusterStateService.applyNewOrUpdatedShards(IndicesClusterStateService.java:576)  
> at  
> org.elasticsearch.indices.cluster.IndicesClusterStateService.clusterChanged(IndicesClusterStateService.java:183)  
> at  
> org.elasticsearch.cluster.service.InternalClusterService$UpdateTask.run(InternalClusterService.java:444)  
> at  
> org.elasticsearch.common.util.concurrent.PrioritizedEsThreadPoolExecutor$TieBreakingPrioritizedRunnable.run(PrioritizedEsThreadPoolExecutor.java:153)  
> at  
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)  
> at  
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)  
> at java.lang.Thread.run(Thread.java:744)
> 
> Most of the indexes have both primary and second shards enabled but the  
> index in question (development) is seen with secondaries going in and out  
> of the newly upgraded node.
> 
> The documentation seems to suggest that it should be possible to do a  
> rolling upgrade from 1.2.1 and that the boxes should coexist reasonably  
> happily, but this does not seem to be the case. The cluster doesn't seem to  
> be going green. Slightly concerned from the words 'corrupted preexisting  
> index' that some damage might have been done?
> 
> We've stopped Elasticsearch on the 1.3.0 box whilst we seek your advice.
> 
> Thanks,
> 
> Ollie
> 
> --  
> You received this message because you are subscribed to the Google Groups  
> "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send an  
> email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> To view this discussion on the web visit  
> [https://groups.google.com/d/msgid/elasticsearch/31f56380-f1f1-4dbd-be7c-20498d5159b1%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/31f56380-f1f1-4dbd-be7c-20498d5159b1%40googlegroups.com)  
> [https://groups.google.com/d/msgid/elasticsearch/31f56380-f1f1-4dbd-be7c-20498d5159b1%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/31f56380-f1f1-4dbd-be7c-20498d5159b1%40googlegroups.com?utm_medium=email&utm_source=footer)  
> .  
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CALY%3DcQCB5hwcwUh6J2LHc\_5O%2Bp7NYPCAFiq\_8EQ2agWyT\_iboQ%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CALY%3DcQCB5hwcwUh6J2LHc_5O%2Bp7NYPCAFiq_8EQ2agWyT_iboQ%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![smonasco\_2](https://avatars.discourse-cdn.com/v4/letter/s/848f3c/32.png) [@smonasco\_2](https://discuss.elastic.co/u/smonasco_2)\
**Post date:** [July 29, 2014, 3:52am UTC](https://discuss.elastic.co/t/rolling-upgrading-from-1-2-1-to-1-3-0-java-lang-illegalargumentexception-no-enum-constant-org-apache-lucene-util-version-4-3-1/18928/3 "2014-07-29T03:52:04Z")

</div>

Do you happen to know if optimize will create a segment larger than 5 gigs?

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/619c435f-8040-4eb1-9528-ba1638d25ee3%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/619c435f-8040-4eb1-9528-ba1638d25ee3%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![Ivan](https://avatars.discourse-cdn.com/v4/letter/i/df788c/32.png) [@Ivan](https://discuss.elastic.co/u/Ivan)\
**Post date:** [July 29, 2014, 3:02pm UTC](https://discuss.elastic.co/t/rolling-upgrading-from-1-2-1-to-1-3-0-java-lang-illegalargumentexception-no-enum-constant-org-apache-lucene-util-version-4-3-1/18928/4 "2014-07-29T15:02:28Z")

</div>

It will depend on your merge settings and your shard size. Not sure why  
not, but I do not recall what the default settings are.

--  
Ivan

On Mon, Jul 28, 2014 at 8:52 PM, smonasco [smonasco@gmail.com](mailto:smonasco@gmail.com) wrote:

> Do you happen to know if optimize will create a segment larger than 5 gigs?
> 
> --  
> You received this message because you are subscribed to the Google Groups  
> "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send an  
> email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> To view this discussion on the web visit  
> [https://groups.google.com/d/msgid/elasticsearch/619c435f-8040-4eb1-9528-ba1638d25ee3%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/619c435f-8040-4eb1-9528-ba1638d25ee3%40googlegroups.com)  
> .  
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CALY%3DcQCWCcOCQW1if-80\_cLWX18%2Bae\_CgHnxPO2sus\_nft6PFQ%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CALY%3DcQCWCcOCQW1if-80_cLWX18%2Bae_CgHnxPO2sus_nft6PFQ%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 6, 2017, 1:12am UTC](https://discuss.elastic.co/t/rolling-upgrading-from-1-2-1-to-1-3-0-java-lang-illegalargumentexception-no-enum-constant-org-apache-lucene-util-version-4-3-1/18928/5 "2017-07-06T01:12:29Z")

</div>


