[7.x] Conditionally sets ignore_throttled only when search:includeFrozen is true#114381
Merged
jasonrhodes merged 4 commits intoOct 18, 2021
Merged
Conversation
weltenwort
approved these changes
Oct 11, 2021
weltenwort
left a comment
Member
There was a problem hiding this comment.
seems to work as advertised, thank you 👍 just left a small style question below
Contributor
|
Pinging @elastic/logs-metrics-ui (Team:logs-metrics-ui) |
Member
|
@elasticmachine merge upstream |
Member
|
@elasticmachine merge upstream |
Contributor
|
@elasticmachine merge upstream |
Contributor
💛 Build succeeded, but was flaky
Test FailuresKibana Pipeline / general / X-Pack API Integration Tests.x-pack/test/api_integration/apis/ml/jobs/categorization_field_examples·ts.apis Machine Learning jobs Categorization example endpoint - invalid, too many tokens.Standard OutStack TraceMetrics [docs]
History
To update your PR or re-run it, just comment with: |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #113197
Summary
The "ignore_throttled" ES option is deprecated, as are frozen indices in general.. ES queries behave as though this flag is set to
trueby default, meaning they will ignore frozen indices.When the Kibana setting for "include frozen indices" is set to true, we still need to set this flag to
falseexplicitly to continue to respect that Kibana setting. (Exact deprecation strategy for that Kibana setting is still TBD.)However, the current code was always setting the
ignore_throttledoption to be the!-negated value of whatever thesearch:includeFrozensetting was. Whenever this value is included in a query, an ES deprecation log is produced. When a user hasn't indicated that they are even trying to interact with the deprecated frozen index feature, we shouldn't be including this flag and setting it to its default value. We should leave the flag out altogether and avoid the deprecation log warning.To Test / Reproduce
?sourceId=deprecation_logs, if you visit the Logs UI directly, you won't see them)