# Possible 7.7.0 bug with searching idle shards

**URL:** <https://discuss.elastic.co/t/possible-7-7-0-bug-with-searching-idle-shards/233168>\
**Category:** Elasticsearch\
**Created:** [May 18, 2020, 5:42pm UTC](https://discuss.elastic.co/t/possible-7-7-0-bug-with-searching-idle-shards/233168 "2020-05-18T17:42:38Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Andy\_Wick](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/andy_wick/32/44017_2.png) [@Andy\_Wick](https://discuss.elastic.co/u/Andy_Wick)\
**Post date:** [May 18, 2020, 5:42pm UTC](https://discuss.elastic.co/t/possible-7-7-0-bug-with-searching-idle-shards/233168/1 "2020-05-18T17:42:38Z")

</div>

I'm having an issue with 7.7.0 where when I search an index that does NOT have refresh\_interval set, I don't get all the results back I'm expecting. If I do the query over and over by the 6th time it will work and have all the data. I assume I'm hitting the newish feature where it won't background refresh things if no searches. In prior elasticsearch versions I think the query would just wait until the refresh happen. At least that is how I read [https://www.elastic.co/guide/en/elasticsearch/reference/7.8/index-modules.html#dynamic-index-settings](https://www.elastic.co/guide/en/elasticsearch/reference/7.8/index-modules.html#dynamic-index-settings) "`Searches that hit an idle shard where a refresh is pending will wait for the next background refresh (within 1s).`" Did something change between previous 7.x versions and 7.7.0 or is this a bug?

Note this did work with 7.6.2 and all previous versions of 1.x-7.x we've used, so something changed. I also reproduced on several different clusters.

\_settings on the index

```auto
{
      "dstats_v4" : {
        "settings" : {
          "index" : {
            "number_of_shards" : "2",
            "auto_expand_replicas" : "0-3",
            "provided_name" : "dstats_v4",
            "creation_date" : "1565358628829",
            "priority" : "50",
            "number_of_replicas" : "3",
            "uuid" : "muB0pZV4SYywXmxBcJEEGA",
            "version" : {
              "created" : "6080299",
              "upgraded" : "7040299"
            }
          }
        }
      }
    }

```

---

<div class="post-metadata">

**Author:** ![Andy\_Wick](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/andy_wick/32/44017_2.png) [@Andy\_Wick](https://discuss.elastic.co/u/Andy_Wick)\
**Post date:** [May 29, 2020, 12:02pm UTC](https://discuss.elastic.co/t/possible-7-7-0-bug-with-searching-idle-shards/233168/2 "2020-05-29T12:02:32Z")

</div>

Will be fixed in 7.7.1 [https://github.com/elastic/elasticsearch/issues/57006](https://github.com/elastic/elasticsearch/issues/57006)

---

<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:** [June 26, 2020, 12:02pm UTC](https://discuss.elastic.co/t/possible-7-7-0-bug-with-searching-idle-shards/233168/3 "2020-06-26T12:02:38Z")

</div>

Closed on June 26, 2020, 12:02pm UTC

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