# Potential Elasticsearch bug: Index yellow but one or more primary shards unassigned

**URL:** <https://discuss.elastic.co/t/potential-elasticsearch-bug-index-yellow-but-one-or-more-primary-shards-unassigned/282231>\
**Category:** Elasticsearch\
**Tags:** snapshot-and-restore\
**Created:** [August 23, 2021, 1:25pm UTC](https://discuss.elastic.co/t/potential-elasticsearch-bug-index-yellow-but-one-or-more-primary-shards-unassigned/282231 "2021-08-23T13:25:58Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![elastic-learner](https://avatars.discourse-cdn.com/v4/letter/e/b5ac83/32.png) [@elastic-learner](https://discuss.elastic.co/u/elastic-learner)\
**Post date:** [August 23, 2021, 1:25pm UTC](https://discuss.elastic.co/t/potential-elasticsearch-bug-index-yellow-but-one-or-more-primary-shards-unassigned/282231/1 "2021-08-23T13:25:59Z")

</div>

I'm testing es snapshot restoration on opendistro 7.1.1. Immediately after snapshot restore api call(POST /\_snapshot/my\_backup/snapshot\_1/\_restore) returns, all the indices are in yellow state. In most of them there are one or more unassigned primary shards(in some cases all primary shards are unassigned). So by definition these indices should be in **red** state, but they are in yellow state. Is my understanding correct? Is this an Elasticsearch bug?

---

<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:** [August 23, 2021, 5:32pm UTC](https://discuss.elastic.co/t/potential-elasticsearch-bug-index-yellow-but-one-or-more-primary-shards-unassigned/282231/2 "2021-08-23T17:32:49Z")

</div>

Welcome!

Note that we don't support not official distributions here.

But having yellow state on a one node cluster is correct. Only replicas are unassigned.

---

<div class="post-metadata">

**Author:** ![elastic-learner](https://avatars.discourse-cdn.com/v4/letter/e/b5ac83/32.png) [@elastic-learner](https://discuss.elastic.co/u/elastic-learner)\
**Post date:** [August 24, 2021, 1:34am UTC](https://discuss.elastic.co/t/potential-elasticsearch-bug-index-yellow-but-one-or-more-primary-shards-unassigned/282231/3 "2021-08-24T01:34:03Z")

</div>

@dadoonet I'm new to Elasticsearch. Can you please tell me which es distributions are official?

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [August 24, 2021, 3:41am UTC](https://discuss.elastic.co/t/potential-elasticsearch-bug-index-yellow-but-one-or-more-primary-shards-unassigned/282231/4 "2021-08-24T03:41:48Z")

</div>

Opendistro is not Elasticsearch, we only support Elasticsearch as produced and released by us - [Download Elastic Products | Elastic](https://www.elastic.co/downloads/)

---

<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:** [September 21, 2021, 3:42am UTC](https://discuss.elastic.co/t/potential-elasticsearch-bug-index-yellow-but-one-or-more-primary-shards-unassigned/282231/5 "2021-09-21T03:42:02Z")

</div>

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