-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
Fixes error with percentiles on index with many docs #113216
Conversation
Pinging @elastic/kibana-vis-editors (Team:VisEditors) |
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.
code LGTM
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.
Tested this fix with the example shown in #113215 and the fallback works without showing any error.
Is there an issue in the ES for this bug that can be tracked?
Yes maybe we should inform the ES team about it. I assume that it comes from ES, not 100% sure. I tried to find a kibana change that maybe initiated it but I couldn't find anything. @ppisljar @flash1293 wdyt? |
* Fixes error with metric viz and percentiles on index with many docs * Unskip the metric viz suite * Adds a unit test
* Fixes error with metric viz and percentiles on index with many docs * Unskip the metric viz suite * Adds a unit test
* Fixes error with metric viz and percentiles on index with many docs * Unskip the metric viz suite * Adds a unit test Co-authored-by: Stratoula Kalafateli <[email protected]>
* Fixes error with metric viz and percentiles on index with many docs * Unskip the metric viz suite * Adds a unit test Co-authored-by: Stratoula Kalafateli <[email protected]>
Summary
closes #106121
closes #113215
This fixes the error described on the issue. Specifically, we found out that when we are using percentiles agg on visualizations based on an index with many documents, the request returns zero data. As a result, the destructure fails and the error appears.
By providing a fallback, seems to solve the problem.
Runner 100 times https://kibana-ci.elastic.co/job/kibana+flaky-test-suite-runner/1949/
Runner 100 times https://kibana-ci.elastic.co/job/kibana+flaky-test-suite-runner/1950/