-
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 dashboard crashes when requests time out #44061
Comments
@Sagesh Can you clarify if you are seeing a Kibana crash when requests time out? While you may be able to reproduce most easily with scripted fields, that sounds like a more general issue. |
Pinging @elastic/kibana-platform |
Pinging @elastic/kibana-app-arch |
We were able to find a potential cause: if the Elasticsearch request times out, it could cause our proxy to return a 200 response with an empty body due to this line in return callWithRequest(req, 'transport.request', {
path: '/_msearch',
method: 'POST',
query,
body: payload.toString('utf8')
}, { signal }).finally(r => h.response(r)); |
Thanks for your response. It's good that you were able to reproduce the issue.
Thanks, |
After the timeout happens,ES is not responding for any queries.So we have to restart ES. Once the ES is back we were able to use Kibana. |
Thanks for clarifying. The issue you're describing is being actively worked in by many different people across teams, but you may be interested in how the Task API works with long-running searches: elastic/elasticsearch#43105 In future releases of the stack, Kibana will be smarter about cancelling dashboard queries that are no longer being used, such as in the case you mentioned. The only workaround I can suggest is to improve your query performance by following some of our general tuning recommendations. There is still a bug in Kibana that happens when queries get cancelled before returning results which I described earlier, so I intend to keep this issue open to discuss that bug. |
I believe this has been fixed in 7.7. If you are still seeing this behavior, feel please re-open. |
Kibana version: 6.5
Elasticsearch version: 6.5
Server OS version: Ubuntu
Browser version: Chrome
Describe the bug:
When we use scripted fields in Kibana elastic search is getting crashed
Steps to reproduce:
Expected behavior:
Elastic search shouldn't hung/ crash
Errors in browser console (if relevant):
Timeout error
The text was updated successfully, but these errors were encountered: