-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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
Lens editor gets into infinite search loop when searches take a while to complete and relative time range is used #124219
Comments
Pinging @elastic/kibana-app-services (Team:AppServicesSv) |
@flash1293 I think both problems are happening simultaneously there |
@flash1293, could it be that Lens editor re-runs the search in case the previous search took a long time to load (~1 minute)? Maybe this code is executed when we got search results that took a while to load and lens triggers refetch? kibana/x-pack/plugins/lens/public/state_management/context_middleware/index.ts Lines 64 to 71 in d862d9b
|
@flash1293, absolute time range works. The search takes quite a while to complete. |
Pinging @elastic/kibana-vis-editors @elastic/kibana-vis-editors-external (Team:VisEditors) |
Maybe while fixing this, this would be a good opportunity for lens to add a |
@flash1293 @Dosant I think I have another vis where it happens with an absolute timerange. |
In this case, it doesn't look like you even got to the result? (no chart displayed) |
|
I misunderstood the bug a bit - the chart is showing up, it's just kicking off a new search immediately as long as the editor is open. It's equivalent to not being able to turn off auto-refresh. This makes this bug way less severe as Lens is constantly sending out requests anyway in most usage scenarios. Changing the severity but still working on a fix. While at it I will add the shard delay thing to make it easier to debug later on. |
Kibana version:
7.16.1
Describe the bug:
I created a visualization containing a scripted field (not a runtime field).
Loading it for last 15 minutes sends kibana into an endless
bsearch
loop and it never finishes to load (I waited for over 3 minutes).Steps to reproduce:
Expected behavior:
Visualization should either load or terminate \ show an error.
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: