Skip to content
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

Async search observable can return a non-final response #64132 #64155

Merged
merged 4 commits into from
Apr 22, 2020

Conversation

lizozom
Copy link
Contributor

@lizozom lizozom commented Apr 22, 2020

Summary

Resolves #64132

Checklist

Delete any items that are not applicable to this PR.

For maintainers

@lizozom lizozom added bug Fixes for quality problems that affect the customer experience Feature:Search Querying infrastructure in Kibana v8.0.0 Team:AppArch release_note:skip Skip the PR/issue when compiling release notes v7.7.0 labels Apr 22, 2020
@lizozom lizozom requested a review from a team as a code owner April 22, 2020 10:21
@lizozom lizozom self-assigned this Apr 22, 2020
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-app-arch (Team:AppArch)

Copy link

@jimczi jimczi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me ;).

Copy link
Contributor

@streamich streamich left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code change LGTM.

@kibanamachine
Copy link
Contributor

💚 Build Succeeded

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

@lizozom lizozom merged commit a80348e into elastic:master Apr 22, 2020
lizozom pushed a commit to lizozom/kibana that referenced this pull request Apr 22, 2020
…elastic#64155)

* resolves elastic#64132

* simplify condition

* added IAsyncSearchResponse type

* update and add jest tests
lizozom pushed a commit to lizozom/kibana that referenced this pull request Apr 22, 2020
…elastic#64155)

* resolves elastic#64132

* simplify condition

* added IAsyncSearchResponse type

* update and add jest tests
@nreese
Copy link
Contributor

nreese commented Apr 22, 2020

@lizozom Can you provide a little more details about how this fixes the problem and what the problem is? I want to verify that consumers of SearchSource do not need to do anything different and this was a problem with the service.

@lizozom
Copy link
Contributor Author

lizozom commented Apr 22, 2020

@nreese the problem here was not handling an error state returned by ES properly.
There was a case where ES doesn't return results, but we would assume that data should still be arriving. Hence we would poll until we tiemout.

@nreese
Copy link
Contributor

nreese commented Apr 22, 2020

So clients of SearchSource to not need to do anything special. Does SearchSource return partial results? How should clients handle that?

lizozom pushed a commit that referenced this pull request Apr 22, 2020
… (#64196)

* resolves #64132

* simplify condition

* added IAsyncSearchResponse type

* update and add jest tests
lizozom pushed a commit that referenced this pull request Apr 22, 2020
… (#64195)

* resolves #64132

* simplify condition

* added IAsyncSearchResponse type

* update and add jest tests
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Fixes for quality problems that affect the customer experience Feature:Search Querying infrastructure in Kibana release_note:skip Skip the PR/issue when compiling release notes v7.7.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Async search observable can return a non-final response
6 participants