-
Notifications
You must be signed in to change notification settings - Fork 8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[data.search] Fix last search call to retrieve results (#182205)
## Summary Resolves #182204. Resolves #181482. Resolves #181493. Flaky test runner: https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/5847 When a search request hits the timeout, we make one more call to the search request for the final results before cancelling the search request. Prior to this PR, there was a bug that made it so we actually made the call to delete the request before making that final call, and we weren't sending the ID in the request so it actually created an entirely new request. This PR moves the code that makes that last call to the call to `pollSearch` and ensures we don't call `cancel` until it has returned. ### Checklist - [x] [Unit or functional tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html) were updated or added to match the most common scenarios - [ ] [Flaky Test Runner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1) was used on any tests changed
- Loading branch information
1 parent
1c44bc2
commit 71bd961
Showing
4 changed files
with
39 additions
and
67 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters