# Exception when creating Index

**URL:** https://discuss.elastic.co/t/exception-when-creating-index/78657
**Category:** Elasticsearch
**Created:** [March 15, 2017, 8:51am UTC](https://discuss.elastic.co/t/exception-when-creating-index/78657 "2017-03-15T08:51:25Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![Abid\_Hussain](https://avatars.discourse-cdn.com/v4/letter/a/dfb087/32.png) [@Abid\_Hussain](https://discuss.elastic.co/u/Abid_Hussain)
#### Post date: [March 15, 2017, 8:51am UTC](https://discuss.elastic.co/t/exception-when-creating-index/78657/1 "2017-03-15T08:51:25Z")

</div>

Hi,

we're using Elasticsearch 1.4.

we have a nightly job running which deletes several indices and creates them again from scratch via Java API. Deletion of indices fails. The log is not very informative (see below). Do you have any advice how to find out the reason for this issue?

Log output:

[2017-03-15 02:40:31,663][DEBUG][action.admin.indices.delete] [Magdalene] [index\_avme] failed to delete index  
org.elasticsearch.cluster.metadata.ProcessClusterEventTimeoutException: failed to process cluster event (delete-inde  
x [index\_avme]) within 30s  
at org.elasticsearch.cluster.service.InternalClusterService$2$1.run(InternalClusterService.java:263)  
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)  
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)  
at java.lang.Thread.run(Thread.java:745)  
[2017-03-15 02:55:31,464][DEBUG][action.admin.indices.delete] [Magdalene] [index\_fr] failed to delete index  
org.elasticsearch.cluster.metadata.ProcessClusterEventTimeoutException: failed to process cluster event (delete-inde  
x [index\_fr]) within 30s  
at org.elasticsearch.cluster.service.InternalClusterService$2$1.run(InternalClusterService.java:263)  
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)  
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)  
at java.lang.Thread.run(Thread.java:745)  
[2017-03-15 03:00:30,119][DEBUG][action.admin.indices.delete] [Magdalene] [index\_de] failed to delete index  
org.elasticsearch.cluster.metadata.ProcessClusterEventTimeoutException: failed to process cluster event (delete-inde  
x [index\_de]) within 30s  
at org.elasticsearch.cluster.service.InternalClusterService$2$1.run(InternalClusterService.java:263)  
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)  
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)  
at java.lang.Thread.run(Thread.java:745)

Regards,

Abid

---

<div class="post-metadata">

### Author: ![xavierfacq](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/xavierfacq/32/8744_2.png) [@xavierfacq](https://discuss.elastic.co/u/xavierfacq)
#### Post date: [March 15, 2017, 11:07am UTC](https://discuss.elastic.co/t/exception-when-creating-index/78657/2 "2017-03-15T11:07:40Z")

</div>

Hi,

Does your nightly job trace some errors (in responses) when deleting indices ?  
Does you client (nightly job) and your cluster use the same Jar version ?

bye  
Xavier

---

<div class="post-metadata">

### Author: ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)
#### Post date: [March 15, 2017, 11:12am UTC](https://discuss.elastic.co/t/exception-when-creating-index/78657/3 "2017-03-15T11:12:58Z")

</div>

Definitely upgrade !

---

<div class="post-metadata">

### Author: ![Abid\_Hussain](https://avatars.discourse-cdn.com/v4/letter/a/dfb087/32.png) [@Abid\_Hussain](https://discuss.elastic.co/u/Abid_Hussain)
#### Post date: [March 15, 2017, 2:40pm UTC](https://discuss.elastic.co/t/exception-when-creating-index/78657/4 "2017-03-15T14:40:21Z")

</div>

Yes, they use the same jar version (1.4.2).

Our application log shows the following:

org.elasticsearch.cluster.metadata.ProcessClusterEventTimeoutException: failed to process cluster event (  
delete-index [index\_de]) within 30s  
at org.elasticsearch.cluster.service.InternalClusterService$2$1.run(InternalClusterService.java:263)  
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)  
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)  
... 1 more

Any ideas how to investigate further?

Regards,

Abid

---

<div class="post-metadata">

### Author: ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)
#### Post date: [March 15, 2017, 3:31pm UTC](https://discuss.elastic.co/t/exception-when-creating-index/78657/5 "2017-03-15T15:31:28Z")

</div>

> [@Abid\_Hussain](#):
>
> Any ideas how to investigate further?

This version is so old. At the very least you should upgrade to 1.7 which is not supported anymore though.

So many things have been fixed between 1.4, 1.7, 2.4 and 5.2!

---

<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: [April 12, 2017, 3:31pm UTC](https://discuss.elastic.co/t/exception-when-creating-index/78657/6 "2017-04-12T15:31:29Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
