Skip to content

Conversation

@benwtrent
Copy link
Member

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

@elasticmachine
Copy link
Collaborator

Pinging @elastic/ml-core (:ml)

@benwtrent
Copy link
Member Author

@elasticmachine update branch

Copy link
Contributor

@przemekwitek przemekwitek left a 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.

Copy link

@hendrikmuhs hendrikmuhs left a 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).

Copy link
Contributor

@dimitris-athanasiou dimitris-athanasiou left a 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!

@benwtrent benwtrent merged commit 5074f2c into elastic:master Apr 22, 2020
@benwtrent benwtrent deleted the feature/ml-df-explicitly-disallow-partial-results-in-datafeeds branch April 22, 2020 12:19
benwtrent added a commit to benwtrent/elasticsearch that referenced this pull request Apr 22, 2020
…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
benwtrent added a commit that referenced this pull request Apr 22, 2020
…) (#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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[ML] Make use of allow_partial_search_results on search requests of data extractors

6 participants