[Search Sessions] Error state needs retry mechanism #105726
Labels
bug
Fixes for quality problems that affect the customer experience
Feature:Search Sessions
Feature:Search
Querying infrastructure in Kibana
Icebox
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
Team:DataDiscovery
Discover, search (e.g. data plugin and KQL), data views, saved searches. For ES|QL, use Team:ES|QL.
In case of search status request fail due to network or cluster instability, we assume ERROR_STATE as the same state when es returned search error:
kibana/x-pack/plugins/data_enhanced/server/search/session/get_search_status.ts
Lines 46 to 55 in 821aeb1
In this case, we transition the search session to an error state and then stop checking its search statuses. But it actually might be that the searches will successfully finish later. Also, searches might leave hanging, executing and loading the cluster: #105434
We need to handle that
catch
close differently. Maybe introduce a retry mechanism, where we would try to check that search status again on the next task run.The text was updated successfully, but these errors were encountered: