# Scroll: Failed to execute query phase

**URL:** <https://discuss.elastic.co/t/scroll-failed-to-execute-query-phase/132634>\
**Category:** Elasticsearch\
**Created:** [May 21, 2018, 9:19am UTC](https://discuss.elastic.co/t/scroll-failed-to-execute-query-phase/132634 "2018-05-21T09:19:49Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![fetch](https://avatars.discourse-cdn.com/v4/letter/f/dbc845/32.png) [@fetch](https://discuss.elastic.co/u/fetch)\
**Post date:** [May 21, 2018, 9:19am UTC](https://discuss.elastic.co/t/scroll-failed-to-execute-query-phase/132634/1 "2018-05-21T09:19:49Z")

</div>

Hello,

I have a single node cluster. Recently I've updated to the latest version of ELK (6.2.3).

I'm not sure if my problem is related to updating to a newer version or it's just a coincidence, but I've noticed that my scroll requests started constantly failing on 1 shard out all of all available.

My python script fails with the following message:

```
  File "/usr/local/lib/python2.7/dist-packages/elasticsearch/helpers/ __init__.py", line 394, in scan
    (resp['_shards']['successful'], resp['_shards']['total'])
elasticsearch.helpers.ScanError: Scroll request has only succeeded on 555 shards out of 556.

```

Corresponding elasticsearch logs:

```
[2018-05-21T12:00:20,633][DEBUG][o.e.a.s.TransportSearchScrollAction] [elk2] [1083396301] Failed to execute query phase
org.elasticsearch.transport.RemoteTransportException: [elk2][127.0.0.1:9300][indices:data/read/search[phase/query/scroll]]
Caused by: org.elasticsearch.common.util.concurrent.EsRejectedExecutionException: rejected execution of org.elasticsearch.common.util.concurrent.TimedRunnable@61654bb5 on QueueResizingEsThreadPoolExecutor[name = elk2/search, queue capacity = 1000, min queue capacity = 1000, max queue capacity = 1000, frame size = 2000, targeted response rate = 1s, task execution EWMA = 1.7ms, adjustment amount = 50, org.elasticsearch.common.util.concurrent.QueueResizingEsThreadPoolExecutor@1eef7d00[Running, pool size = 61, active threads = 51, queued tasks = 952, completed tasks = 4451827077]]
        at org.elasticsearch.common.util.concurrent.EsAbortPolicy.rejectedExecution(EsAbortPolicy.java:48) ~[elasticsearch-6.2.3.jar:6.2.3]
        at java.util.concurrent.ThreadPoolExecutor.reject(ThreadPoolExecutor.java:830) ~[?:1.8.0_161]
        at java.util.concurrent.ThreadPoolExecutor.execute(ThreadPoolExecutor.java:1379) ~[?:1.8.0_161]
...

```

Full traceback: [https://pastebin.com/ksggHYRT](https://pastebin.com/ksggHYRT)

Could you please point me how to solve this issue?

---

<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 18, 2018, 9:20am UTC](https://discuss.elastic.co/t/scroll-failed-to-execute-query-phase/132634/2 "2018-06-18T09:20:00Z")

</div>

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