Skip to content
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

Merged
merged 3 commits into from
Sep 29, 2021

Conversation

stratoula
Copy link
Contributor

@stratoula stratoula commented Sep 28, 2021

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/

@stratoula stratoula changed the title Fixes error with metric viz and percentiles on index with many docs Fixes error with percentiles on index with many docs Sep 28, 2021
@stratoula stratoula marked this pull request as ready for review September 28, 2021 09:19
@stratoula stratoula requested review from a team as code owners September 28, 2021 09:19
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-vis-editors (Team:VisEditors)

@kibanamachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

Page load bundle

Size of the bundles that are downloaded on every page load. Target size is below 100kb

id before after diff
data 498.4KB 498.4KB +34.0B

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

Copy link
Member

@ppisljar ppisljar left a comment

Choose a reason for hiding this comment

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

code LGTM

Copy link
Contributor

@dej611 dej611 left a 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?

@stratoula
Copy link
Contributor Author

stratoula commented Sep 29, 2021

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?

@stratoula stratoula added the auto-backport Deprecated - use backport:version if exact versions are needed label Sep 29, 2021
@stratoula stratoula merged commit c63f4be into elastic:master Sep 29, 2021
kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Sep 29, 2021
* Fixes error with metric viz and percentiles on index with many docs

* Unskip the metric viz suite

* Adds a unit test
kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Sep 29, 2021
* Fixes error with metric viz and percentiles on index with many docs

* Unskip the metric viz suite

* Adds a unit test
@kibanamachine
Copy link
Contributor

💚 Backport successful

Status Branch Result
7.x
7.15

The backport PRs will be merged automatically after passing CI.

kibanamachine added a commit that referenced this pull request Sep 29, 2021
* 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]>
kibanamachine added a commit that referenced this pull request Sep 29, 2021
* 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]>
@KOTungseth KOTungseth added the Feature:TSVB TSVB (Time Series Visual Builder) label Oct 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto-backport Deprecated - use backport:version if exact versions are needed Feature:TSVB TSVB (Time Series Visual Builder) release_note:fix Team:Visualizations Visualization editors, elastic-charts and infrastructure v7.15.1 v7.16.0 v8.0.0
Projects
None yet
6 participants