-
Notifications
You must be signed in to change notification settings - Fork 8.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Kibana returns empty response after 120 seconds for a long-running query #33829
Comments
Pinging @elastic/kibana-app |
Hi, could you please clarify a bit, what part actually times out or rather which part works. You described using the same query as curl in your steps to reproduce. Does that curl query work fine and don't time out, or does that time out too? What happens if you send the same query not via discover but from Kibana's Dev Tools > Console to Elasticsearch? |
Node.js has a global timeout of 2 minutes for all sockets. I'm sorta surprised it worked prior to 6.6, but maybe the hapi proxy config that has been removed was letting it happen. I have #31603 to make it configurable. |
@timroes GET kibana_sample_data_logs/_search
{
"query" : {
"slow": {
"sleepSec": 200
}
}
} Bare requests to ES sent by curl from shell execute as long as it takes. |
Hi, if this is working in curl, then the "browser version" for this issue is not curl. In addition to what @jbudz wrote about Node having its own global timeout for connections, browsers also have their own timeouts. It's up to the browser vendors to decide how to limit wait times. Some browsers have preferences for users to change the timeouts. |
@tsullivan It's not working(same 120 seconds timeout) with curl either. I provided steps with curl only to demonstrate that it's browser-independent. |
If curl against the Kibana server (as of your description) is not working but curl against ES directly according to your previous comment is working, this really sounds like a limitation of the node socket timeout, that @jbudz mentioned earlier. Jon, I think we might want to add something in the documentation when having those properties about that correlation, that users know that they might need to change that if their |
#14043 maybe merge these issues in one? |
Duplicate of #31549. |
Kibana version:
6.6.0, 6.6.2
Elasticsearch version:
6.6.0, 6.6.2
Server 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:
https://github.com/stu-elastic/slow-query-simulator with some modifications to work with 6.6.0 ES: https://gist.github.com/vkurdin/6ea8a35cfd003736f5d8a4b718f6bc41
/elasticsearch/_msearch
, copy it as cURLObserve 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.
The text was updated successfully, but these errors were encountered: