elasticsearch icon indicating copy to clipboard operation
elasticsearch copied to clipboard

`date_histogram` and `histogram` might produce duplicate buckets in mixed version scenarios

Open iverase opened this issue 9 months ago • 2 comments

Due to the change in https://github.com/elastic/elasticsearch/pull/105359, the order of the buckets generated during a partial reduction for date histograms and histograms aggregations has been changed. This is normally ok except when the results of these partial reductions are shared between clusters in different versions.

One of this cases is cross-cluster search when the coordinator node is in a previous version. The resulting buckets are then in an unexpected order, failing to merge the buckets successfully.

Another case is rolling upgrades with enough shards to enable incremental reduction. In that case incremental reductions performed on nodes on 8.13 might produce incorrect results when the coordinating node is before 8.13.

iverase avatar May 02 '24 10:05 iverase

Pinging @elastic/es-analytical-engine (Team:Analytics)

elasticsearchmachine avatar May 02 '24 10:05 elasticsearchmachine

According to 8.13.4 release notes, this was fixed as part of that release.

image

jbyroads avatar May 15 '24 16:05 jbyroads

closed - corrected in 8.13.4 (as noted above)

wchaparro avatar Jun 07 '24 13:06 wchaparro