# Long-running query problem

**URL:** <https://forum.opensearch.org/t/long-running-query-problem/1259>\
**Category:** General Feedback\
**Created:** [August 5, 2019, 12:28pm UTC](https://forum.opensearch.org/t/long-running-query-problem/1259 "2019-08-05T12:28:48Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![NEO](https://avatars.discourse-cdn.com/v4/letter/n/9fc348/32.png) [@NEO](https://forum.opensearch.org/u/NEO)\
**Post date:** [August 5, 2019, 12:28pm UTC](https://forum.opensearch.org/t/long-running-query-problem/1259/1 "2019-08-05T12:28:48Z")

</div>

Hi, I have open distro v1.1.0 and problem with long-running query. When can I expect a fix?

> <https://github.com/elastic/kibana/issues/33829>
>
> \*\*Kibana version:\*\*
> 6.6.0, 6.6.2
> \*\*Elasticsearch version:\*\*
> 6.6.0, 6.6.2
> \*\*S…erver OS version:\*\*
> Ubuntu 18.04.2 LTS
> \*\*Browser version:\*\*
> curl 7.58.0, Firefox 66
> \*\*Browser OS version:\*\*
> Ubuntu 18.04.2 LTS
> \*\*Original install method (e.g. download page, yum, from source, etc.):\*\*
> Docker: https://www.elastic.co/guide/en/kibana/6.6/docker.html
> \*\*Describe the bug:\*\*
> Kibana returns empty response after 120 seconds for a long-running query
> \*\*Steps to reproduce:\*\*
> 1. Install ES, Kibana, populate with some demo(web logs) data
> 2. Set Kibana config values
> \`\`\`yml
> elasticsearch.requestTimeout: 300000
> elasticsearch.shardTimeout: 300000
> \`\`\`
> 3. To simulate long-running query behaviour install stu-elastic/slow-query-simulator plugin
> https://github.com/stu-elastic/slow-query-simulator with some modifications to work with 6.6.0 ES: https://gist.github.com/vkurdin/6ea8a35cfd003736f5d8a4b718f6bc41
> 4. Restart ES with installed plugin
> 5. Open Discover app in Kibana
> 6. Open dev-console in browser and hit Refresh button in Discover app
> 7. Capture request to \`/elasticsearch/\_msearch\`, copy it as cURL
> 8. Change request body ("query" subtree) to 
> \`\`\`
> "query":{"slow":"sleepSec":200}
> \`\`\`
> 9. Execute in shell(bash):
> \`\`\`
> time %curl\_command% ....
> \`\`\`
> Observe closed connection after 120 seconds.
> \*\*Expected behavior:\*\*
> Kibana should wait at least \`elasticsearch.requestTimeout\` milliseconds for a long-running query.
> \*\*Screenshots (if relevant):\*\*
> 
> \*\*Errors in browser console (if relevant):\*\*
> 
> \*\*Provide logs and/or server output (if relevant):\*\*
> 
> \*\*Any additional context:\*\*
> Kibana 6.5.4 does not have this issue, works as expected.

---

<div class="post-metadata">

**Author:** ![virajph](https://avatars.discourse-cdn.com/v4/letter/v/5fc32e/32.png) [@virajph](https://forum.opensearch.org/u/virajph)\
**Post date:** [August 21, 2020, 10:43pm UTC](https://forum.opensearch.org/t/long-running-query-problem/1259/2 "2020-08-21T22:43:26Z")

</div>

Please refer to [issue](https://github.com/elastic/kibana/issues/31549)
