Skip to content

Conversation

JonasKunz
Copy link
Contributor

The exponential histogram merging algorithm previously did not verify the desired target bucket count for the result of the merge operation.

Because due to how exponentialhistograms work, at least for buckets are requried to represent every possible distribution:
(-Inf, -1), (-1, 0), (0, 1) and (1, +Inf).

This was uncovered by a randomized test from a different PR:
https://buildkite.com/elastic/elasticsearch-pull-request/builds/88511#0198f05a-75bd-4e01-82fb-96ff2133a74e

This PR adds a fix and a reproducer test.

@JonasKunz JonasKunz requested a review from felixbarny August 28, 2025 12:24
@elasticsearchmachine elasticsearchmachine added needs:triage Requires assignment of a team area label v9.2.0 external-contributor Pull request authored by a developer outside the Elasticsearch team labels Aug 28, 2025
@JonasKunz JonasKunz requested a review from kkrik-es August 28, 2025 12:25
@JonasKunz JonasKunz added Team:StorageEngine :StorageEngine/Mapping The storage related side of mappings >test-failure Triaged test failures from CI labels Aug 28, 2025
@elasticsearchmachine elasticsearchmachine added needs:risk Requires assignment of a risk label (low, medium, blocker) and removed needs:triage Requires assignment of a team area label labels Aug 28, 2025
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-storage-engine (Team:StorageEngine)

@kkrik-es kkrik-es added >test Issues or PRs that are addressing/adding tests and removed >test-failure Triaged test failures from CI needs:risk Requires assignment of a risk label (low, medium, blocker) labels Sep 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
external-contributor Pull request authored by a developer outside the Elasticsearch team :StorageEngine/Mapping The storage related side of mappings Team:StorageEngine >test Issues or PRs that are addressing/adding tests v9.2.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants