Skip to content
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

[UnifiedSearch] Refresh every X seem to overfetch (x2) for the given time frame #183507

Open
dej611 opened this issue May 15, 2024 · 3 comments
Open
Assignees
Labels
bug Fixes for quality problems that affect the customer experience Feature:Unified search Unified search related tasks Team:Visualizations Visualization editors, elastic-charts and infrastructure

Comments

@dej611
Copy link
Contributor

dej611 commented May 15, 2024

Describe the bug:

Given a X (i.e. 60s) refresh interval, it seems that a request is sent every X/2 units (i.e. 30s for a 60s).

Steps to reproduce:

  1. Configure a Lens panel in a dashboard
  2. Configure a 60s refresh interval
  3. See a bsearch request flying every 30s

Expected behavior:

A request should be sent every X units (as configured in the time picker)

Screenshots (if relevant):

In this example I've configured a 60s refresh interval, but I get a bsearch request every 30s

Screenshot 2024-05-15 at 14 23 08
@dej611 dej611 added bug Fixes for quality problems that affect the customer experience Team:Visualizations Visualization editors, elastic-charts and infrastructure Feature:Unified search Unified search related tasks labels May 15, 2024
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-visualizations (Team:Visualizations)

@markov00
Copy link
Member

I can confirm this is reproducible in main but seems to affect only Dashboard. I can't reproduce the problem within the lens editor

@markov00 markov00 assigned markov00 and ppisljar and unassigned markov00 May 16, 2024
@ppisljar
Copy link
Member

This seems to be the effect of search session service, where keep alive is sent every 30 seconds

https://github.com/elastic/kibana/blob/main/src/plugins/data/public/search/session/session_service.ts#L304

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Fixes for quality problems that affect the customer experience Feature:Unified search Unified search related tasks Team:Visualizations Visualization editors, elastic-charts and infrastructure
Projects
None yet
Development

No branches or pull requests

4 participants