-
Notifications
You must be signed in to change notification settings - Fork 25.6k
[ML] explicitly disallow partial results in datafeed extractors #55537
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
[ML] explicitly disallow partial results in datafeed extractors #55537
Conversation
|
Pinging @elastic/ml-core (:ml) |
|
@elasticmachine update branch |
…results-in-datafeeds
przemekwitek
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Although I must admit I'm not very familiar with the mechanics of ScrollDataExtractor so you might want to consult someone else on changes to ScrollDataExtractor class.
hendrikmuhs
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
1 comment.
I also wonder if longer term it makes sense to look into SearchPhaseExcecutionException for root cause analysis and better reporting (we have some code for this ready).
.../elasticsearch/xpack/ml/datafeed/extractor/aggregation/AbstractAggregationDataExtractor.java
Outdated
Show resolved
Hide resolved
dimitris-athanasiou
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM Great stuff Ben!
…licitly-disallow-partial-results-in-datafeeds
…tic#55537) Instead of doing our own checks against REST status, shard counts, and shard failures, this commit changes all our extractor search requests to set `.setAllowPartialSearchResults(false)`. - Scrolls are automatically cleared when a search failure occurs with `.setAllowPartialSearchResults(false)` set. - Code error handling is simplified closes elastic#40793
…) (#55585) Instead of doing our own checks against REST status, shard counts, and shard failures, this commit changes all our extractor search requests to set `.setAllowPartialSearchResults(false)`. - Scrolls are automatically cleared when a search failure occurs with `.setAllowPartialSearchResults(false)` set. - Code error handling is simplified closes #40793
Instead of doing our own checks against REST status, shard counts, and shard failures, this commit changes all our extractor search requests to set
.setAllowPartialSearchResults(false)..setAllowPartialSearchResults(false)set.closes #40793