[data.search] Set default expiration to 1m if search sessions are disabled#105329
[data.search] Set default expiration to 1m if search sessions are disabled#105329Dosant merged 6 commits intoelastic:masterfrom
Conversation
|
Pinging @elastic/kibana-app-services (Team:AppServices) |
src/plugins/data/server/search/strategies/ese_search/request_utils.ts
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Code lgtm, but while I was testing this out I realized that this basically means that you can't sit and wait while you dashboard is loading for more than 1 minute anymore if search sessions are disabled.
Before this pr, you still could sit and wait until the slow dashboard loads.
What happens now after one minute is we have an unclear user error:
And in console:
resource_not_found_exception: [resource_not_found_exception] Reason: FjRuR2VFMlBwVHJhbk9RMDlSUGFsV2ccTW03YlpwbFBRMjZTNVhxXzgwVTFoUToxMjMyOA==
So with that in mind, I am not sure now if we want this change, especially considering that we DELETE searches when we are navigating away (doesn't work in 100% of cases, but better then if we'd not delete them at all)
Curious what y'all think about this
|
Hmm, it looks like that behavior is happening because we are still sending |
Right, we didn't change it. We added server-side checks instead.
Chatted with @lizozom, now I understand part about
👍 |
|
@elasticmachine merge upstream |
lizozom
left a comment
There was a problem hiding this comment.
Added some changes but other than that from my side LGTM
💚 Build SucceededMetrics [docs]
History
To update your PR or re-run it, just comment with: cc @lukasolson |
…abled (elastic#105329) Co-authored-by: Anton Dosov <anton.dosov@elastic.co> Co-authored-by: Liza K <liza.katz@elastic.co>
…abled (elastic#105329) Co-authored-by: Anton Dosov <anton.dosov@elastic.co> Co-authored-by: Liza K <liza.katz@elastic.co>
…y-show-migrate-to-authzd-users * 'master' of github.com:elastic/kibana: (48 commits) [Canvas] Expression shape (elastic#103219) [FTR] Skips Vega tests [Sample data] Use Lens in ecommerce data (elastic#106039) [APM] Backends inventory & overview page routes (elastic#106223) [TSVB] Add more functional tests for Gauge and TopN (elastic#105361) Add toggle to enable/disable rule install from SOs (elastic#106189) Improve unit test coverage of FS API calls (elastic#106242) Remove recursive plugin status in meta field (elastic#106286) [Ingest pipelines] add community id processor (elastic#103863) [XY axis] Fixes the values inside bar charts (elastic#106198) [data.search] Set default expiration to 1m if search sessions are disabled (elastic#105329) set the doc title when navigating to reporting and unset when navigating away (elastic#106253) [Lens] Display legend inside chart (elastic#105571) [RAC] [TGrid] Migrate the TGrid's rendering to `EuiDataGrid` (elastic#106199) [Security Solutions] Removes the elastic legacy client from lists and security_solution plugins (elastic#106130) [Enterprise Search] Require security plugin in 8.0 (elastic#106307) [DOCS] Updates screenshots in Dev Tools docs (elastic#105859) [DOCS] Updates text and screenshots in tags doc (elastic#105853) [Alerting] Allow rule types to extract/inject saved object references on rule CRU (elastic#101896) Jest and Storybook fixes (elastic#104991) ... # Conflicts: # x-pack/plugins/reporting/public/plugin.ts

Summary
Resolves #104405.
Prior to this PR, when search sessions were disabled, we would still send
7d(by default) as the expiration for async search requests, meaning many of these requests were kept alive longer than necessary.This PR sends the default expiration of
1mwhen search sessions are disabled so the async search requests are cleaned up properly.Checklist