Open markov00 opened 17 hours ago
Pinging @elastic/kibana-visualizations (Team:Visualizations)
Pinging @elastic/kibana-data-discovery (Team:DataDiscovery)
These seem related to search session requests, keeping the searches alive in case the users chooses to save the session. Typically those requests look similar to these with the search ID included, and I think search sessions typically poll at 30 sec intervals up to 5 min when we discard the session if not saved. Maybe @lukasolson can confirm?
If that's the case, the issue might actually be that Dashboard doesn't poll for search sessions on the initial fetch, and instead only after refetching. I don't know how this impacts search sessions, but I wonder how long it's been going on for... Maybe it goes to show how little search sessions are used 😅
The cancelled requests seem like they may be an unrelated issue. Possibly just that Dashboard attempts to refetch all panels twice in quick succession, causing the initial fetches to abort?
I think search sessions typically poll at 30 sec intervals up to 5 min when we discard the session if not saved
this seems exactly the case, because it polls for ~10 times so basically 5 minutes
Kibana version: main
Describe the bug: If you click the Dashboard refresh button, panels will reload their data but also a series of subsequent requests to the same async search id are issued for ~9 more times at an interval of 30 seconds each.
Steps to reproduce:
ese
cancelled query, then the actualese
query.This happen for every panel on the dashboard, so it means that if you have more than one, the number of requests sent after the first request depends on the number of panels
Expected behavior: Hitting refresh should only refresh the panels one time and should not trigger any other data request.
Screenshots (if relevant): An example with 3 panels
Errors in browser console (if relevant): no errors in console
Any additional context:
The first canceled request looks like the culprit here, is not clear why a request was sent and immediately cancelled.