7.15 metric visualization percentile bucket[agg.parentId] is undefined

After upgrading from 7.14.2 to 7.15, some existing metric visualizations that use percentiles have stopped working.

image

Search Error
bucket[agg.parentId] is undefined

getPercentileValue@https://.../44040/bundles/plugin/data/kibana/data.plugin.js:1:402358
getValue@https://.../44040/bundles/plugin/data/kibana/data.plugin.js:1:243646
collectBucket@https://.../44040/bundles/plugin/data/kibana/data.plugin.js:1:660368

steps to reproduce:

  • Visualize Library > new visualization > aggregation based > metric
  • choose an index source (that has a lot of documents)
  • add metric
  • aggregation: percentiles
  • field: any number field
  • time window that result in > 150k documents
  • update

Hi @jsteenkamp ,

I've tried to reproduce with the sample data but could not.
Can you provide some more information about the index pattern size? Do you have a particular high number of fields, or high number of documents (> 20k documents)?

Hi @Marco_Liberati, thank you for your feedback. I can confirm that it only happens at some of the indices we are using. I have already updated the description to:

After upgrading from 7.14.2 to 7.15, some existing metric visualizations that use percentiles have stopped working.

If I take a small time window, for instance 5 minutes, it works. If I change the time window to 1 hour, it fails. Looks like this issue is related to the number of documents. This particular index fails above 155k documents.

Hi @jsteenkamp ,

the bug has been confirmed and a fix is on the way: Error in visualizations with percentiles for indices with many documents · Issue #113215 · elastic/kibana · GitHub

1 Like

Thank you @Marco_Liberati

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.