-
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
[Search] Review searches clean up #105441
Labels
duplicate
Feature:Search Sessions
Feature:Search
Querying infrastructure in Kibana
impact:high
Addressing this issue will have a high level of impact on the quality/strength of our product.
loe:large
Large Level of Effort
performance
Comments
Pinging @elastic/kibana-app-services (Team:AppServices) |
This was referenced Jul 13, 2021
5 tasks
@Dosant It feels like there a lot of duplucates of this issue (for example #106395). |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
duplicate
Feature:Search Sessions
Feature:Search
Querying infrastructure in Kibana
impact:high
Addressing this issue will have a high level of impact on the quality/strength of our product.
loe:large
Large Level of Effort
performance
We should review how and when our searches are currently cleaned up. This includes a strategy for handling discarded searches and reviewing our timeout settings
related: #106395, #106400
Currently, all sessions (both persisted and non-persisted) are cleaned up in the monitoring task
kibana/x-pack/plugins/data_enhanced/server/search/session/check_non_persiseted_sessions.ts
Lines 67 to 99 in 1c5d548
Also, existing cleanup from the client is not centralized and causes an out-of-sync state between searches in elasticsearch and kibana's search sessions saved objects #104309, #98698
Possible existing issue 1
On the client we abort unfinished searches if they don't belong to a saved session:
kibana/src/plugins/data/public/search/search_interceptor/search_interceptor.ts
Lines 230 to 232 in 1c5d548
This is causing a desync issue, as we don't delete search from non-persisted sessions here
Possible existing issue 2
We can delete a search session
kibana/src/plugins/data/public/search/session/session_service.ts
Lines 305 to 307 in 1c5d548
But since this is happening separately, searchers might get out of sync and still be executing
Possible existing issue 3
Does server side search strategy handles request cancelation? #113423
There was a pr that should have addressed this: #99658 but new use-case come up where search session is reused between Dashboard<->Lens and it needs a different approach now.
The text was updated successfully, but these errors were encountered: