Skip to content

[FEATURE][ML] Ensure data extractor is not leaking scroll contexts #42960

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

Conversation

dimitris-athanasiou
Copy link
Contributor

Also adds some basic unit tests for the DF data extractor

@dimitris-athanasiou dimitris-athanasiou added the :ml Machine learning label Jun 6, 2019
@elasticmachine
Copy link
Collaborator

Pinging @elastic/ml-core

return tryRequestWithSearchResponse(() -> executeSearchRequest(buildSearchRequest()));
}

private List<Row> tryRequestWithSearchResponse(Supplier<SearchResponse> request) throws IOException {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think having this method is a nice way of handling with the 2 different requests in a single place. If people like it, we can reuse this in ScrollDataExtractor to simplify and rely on allow_partial_search_results to do its job of clearing the scroll context on error.

@dimitris-athanasiou
Copy link
Contributor Author

run elasticsearch-ci/bwc

@dimitris-athanasiou
Copy link
Contributor Author

run elasticsearch-ci/default-distro

@dimitris-athanasiou dimitris-athanasiou force-pushed the ensure-data-extractor-is-not-leaking-scroll-contexts branch from 75573d5 to 82bae15 Compare June 7, 2019 10:38
@benwtrent benwtrent self-requested a review June 7, 2019 13:47
@dimitris-athanasiou dimitris-athanasiou merged commit 521734d into elastic:feature-ml-data-frame-analytics Jun 11, 2019
@dimitris-athanasiou dimitris-athanasiou deleted the ensure-data-extractor-is-not-leaking-scroll-contexts branch June 11, 2019 13:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:ml Machine learning
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants