[Blocker] KQL Autocomplete chokes ES #58749
Labels
blocker
bug
Fixes for quality problems that affect the customer experience
Feature:KQL
KQL
Feature:New Platform
v7.6.1
Kibana version:
7.6, 7.6.1, 8.0
Elasticsearch version:
Server OS version:
Browser version:
Browser OS version:
Original install method (e.g. download page, yum, from source, etc.):
Describe the bug:
This bug is a combination of several issues:
This pr accidentally removed the timeout from the autocomplete request making the autocomplete requests run without a timeout (combination of dropping the
ms
suffix from timeout and fetching the config from the wrong place, resulting in an undefined timeout being sent to ES.This pr introduced query cancellation, but the query wasn't actually canceled on the server until 7.7 Abort cancelled search requests to Elasticsearch #56788
Together, these two issues cause ES to get to 100% CPU in a production environment, making it almost unusable unless KQL autocomplete is disabled.
Steps to reproduce:
timeout
andterminate_after
, but it doesn't.Expected behavior:
All requests should have
timeout
andterminate_after
Screenshots (if relevant):
Errors in browser console (if relevant):
Provide logs and/or server output (if relevant):
Any additional context:
The text was updated successfully, but these errors were encountered: