-
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
Dosant
added
Feature:Search
Querying infrastructure in Kibana
enhancement
New value added to drive a business result
Team:AppServices
labels
Jul 13, 2021
Pinging @elastic/kibana-app-services (Team:AppServices) |
This was referenced Jul 13, 2021
exalate-issue-sync
bot
added
impact:low
Addressing this issue will have a low level of impact on the quality/strength of our product.
loe:small
Small Level of Effort
labels
Jul 19, 2021
exalate-issue-sync
bot
added
impact:medium
Addressing this issue will have a medium level of impact on the quality/strength of our product.
and removed
impact:low
Addressing this issue will have a low level of impact on the quality/strength of our product.
labels
Jul 29, 2021
lukasolson
added
performance
and removed
enhancement
New value added to drive a business result
labels
Sep 28, 2021
exalate-issue-sync
bot
added
loe:medium
Medium Level of Effort
and removed
loe:small
Small Level of Effort
labels
Sep 28, 2021
5 tasks
exalate-issue-sync
bot
changed the title
[Search Sessions] Cleaning up abandoned sessions from the client
[Search Sessions] Cleaning up abandoned sessions from the client
Nov 18, 2021
Dosant
changed the title
[Search Sessions] Cleaning up abandoned sessions from the client
[Search] Consistent search clean up strategy
Nov 30, 2021
Dosant
changed the title
[Search] Consistent search clean up strategy
[Search] Review searches clean up
Nov 30, 2021
exalate-issue-sync
bot
added
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
and removed
impact:medium
Addressing this issue will have a medium level of impact on the quality/strength of our product.
loe:medium
Medium Level of Effort
labels
Nov 30, 2021
@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: