# Elasticsearch scroll randomly fails on some shards on version 7.6.2

**URL:** https://discuss.elastic.co/t/elasticsearch-scroll-randomly-fails-on-some-shards-on-version-7-6-2/246035
**Category:** Elasticsearch
**Created:** [August 23, 2020, 9:13pm UTC](https://discuss.elastic.co/t/elasticsearch-scroll-randomly-fails-on-some-shards-on-version-7-6-2/246035 "2020-08-23T21:13:04Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Enes\_Acikoglu](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/enes_acikoglu/32/53590_2.png) [@Enes\_Acikoglu](https://discuss.elastic.co/u/Enes_Acikoglu)
#### Post date: [August 23, 2020, 9:13pm UTC](https://discuss.elastic.co/t/elasticsearch-scroll-randomly-fails-on-some-shards-on-version-7-6-2/246035/1 "2020-08-23T21:13:04Z")

</div>

Hello All,

We are using elasticsearch with version 7.6.2 with 9 data nodes and 3 masters.

We are getting an error on scroll requests as defined below;

```
> Elasticsearch exception [type=exception, reason=Trying to create too many scroll contexts. Must be less than or equal to: [1024] on specific shards.

```

 ![Screen Shot 2020-08-24 at 00.18.08](https://us1.discourse-cdn.com/elastic/original/3X/7/a/7a88561a4e530aec188edc0b6eb38cfa87119177.png)

When I recreate index it works for a while.First of all, it fails always shard number 4, then reindex it fixed but now it fails on index number 0.

Regards.

Enes.

---

<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: [August 25, 2020, 4:42am UTC](https://discuss.elastic.co/t/elasticsearch-scroll-randomly-fails-on-some-shards-on-version-7-6-2/246035/2 "2020-08-25T04:42:59Z")

</div>

It sounds like you are using a lot of scroll queries and are hitting system limits. What is the use-case? Can you provide some additional details about you cluster, data and queries?

---

<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 22, 2020, 4:43am UTC](https://discuss.elastic.co/t/elasticsearch-scroll-randomly-fails-on-some-shards-on-version-7-6-2/246035/3 "2020-09-22T04:43:03Z")

</div>

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