# Index not found right after creation

**URL:** <https://discuss.elastic.co/t/index-not-found-right-after-creation/156788>\
**Category:** Elasticsearch\
**Created:** [November 15, 2018, 6:04am UTC](https://discuss.elastic.co/t/index-not-found-right-after-creation/156788 "2018-11-15T06:04:07Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![baller](https://avatars.discourse-cdn.com/v4/letter/b/f05b48/32.png) [@baller](https://discuss.elastic.co/u/baller)\
**Post date:** [November 15, 2018, 6:04am UTC](https://discuss.elastic.co/t/index-not-found-right-after-creation/156788/1 "2018-11-15T06:04:07Z")

</div>

Elasticsearch version: 6.4.3

Our cluster has a large number of indexes (~300-400) and we occasionally create about 20 indexes at once. Most of the time everything works perfectly. However, sometimes we are experiencing the following sequence of events:

1. Index `my_index` is created
2. `HEAD /my_index` returns 200
3. Any attempt to index an object to the index fails with a 404 (as does a call like `GET /my_index/_settings`

We've implemented some exponential backoff logic to wait some amount of time between steps 2 and 3 and it seems to help mitigate the problem, but doesn't eliminate the problem completely. We also make some cluster health calls with `wait_for_status=green` to really make sure the cluster is in good shape before proceeding.

- Is this a known issue with ES that happens when there are large numbers of indexes?
- Is there any setting or call we can make to help avoid this issue? I find it particularly strange that the `HEAD` call returns 200 but subsequent calls fail.

Thanks for any help!

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [November 15, 2018, 7:39am UTC](https://discuss.elastic.co/t/index-not-found-right-after-creation/156788/2 "2018-11-15T07:39:06Z")

</div>

How many shards do these indices have? How large is your cluster?

---

<div class="post-metadata">

**Author:** ![baller](https://avatars.discourse-cdn.com/v4/letter/b/f05b48/32.png) [@baller](https://discuss.elastic.co/u/baller)\
**Post date:** [November 15, 2018, 2:35pm UTC](https://discuss.elastic.co/t/index-not-found-right-after-creation/156788/3 "2018-11-15T14:35:07Z")

</div>

2 shards per index, running on two nodes, each 16GB. Memory pressure doesn't really get out of control and disk usage is low too.

---

<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:** [December 13, 2018, 2:35pm UTC](https://discuss.elastic.co/t/index-not-found-right-after-creation/156788/4 "2018-12-13T14:35:11Z")

</div>

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