# IndexMissingException

**URL:** <https://discuss.elastic.co/t/indexmissingexception/5684>\
**Category:** Elasticsearch\
**Created:** [October 26, 2011, 4:32am UTC](https://discuss.elastic.co/t/indexmissingexception/5684 "2011-10-26T04:32:50Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sebong\_Oh](https://avatars.discourse-cdn.com/v4/letter/s/0ea827/32.png) [@Sebong\_Oh](https://discuss.elastic.co/u/Sebong_Oh)\
**Post date:** [October 26, 2011, 4:32am UTC](https://discuss.elastic.co/t/indexmissingexception/5684/1 "2011-10-26T04:32:50Z")

</div>

We have two nodes. The one is node client and other is master node.  
I've executed a test case using elasticsearch-0.16.2 as follows.

1. send a create index 'data' request to master node at node client.
2. wait until 'data' index becomes green state at node client.
3. send a index request to 'data' index at node client..

but it resulted in IndexMissingException.

org.elasticsearch.indices.IndexMissingException: [data] missing  
at org.elasticsearch.cluster.metadata.MetaData.concreteIndex(MetaData.java:211)  
at org.elasticsearch.action.index.TransportIndexAction.innerExecute(TransportIndexAction.java:123)  
at org.elasticsearch.action.index.TransportIndexAction.access$000(TransportIndexAction.java:70)  
at org.elasticsearch.action.index.TransportIndexAction$1.onFailure(TransportIndexAction.java:110)  
at org.elasticsearch.action.support.BaseAction$ThreadedActionListener$2.run(BaseAction.java:95)  
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)  
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)  
at java.lang.Thread.run(Thread.java:662)

Checking existence of 'data' index was failed at "org.elasticsearch.action.index.TransportIndexAction.doExecute(TransportIndexAction.java:101).[in 'index' executor]

So. TransportIndexAction tried to create 'data' index but also failed because of index already exists. [in 'clusterService#updateTask' executor]

After failure of creating 'data' index "org.elasticsearch.action.index.TransportIndexAction$1.onFailure(TransportIndexAction.java:110)" is invoked  
but. ClusterState dosen't have 'data' index. so it thrown IndexMissingException [in 'index' executor]

I don't know the reason of this problem.  
InternalClusterService.clusterState is volatile and there is no delete index operation between creating index and index request.

---

<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, 3:50am UTC](https://discuss.elastic.co/t/indexmissingexception/5684/2 "2017-07-06T03:50:56Z")

</div>


