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
@JonasKunz JonasKunz merged commit 8a1aa7c into elastic:main Sep 29, 2025
33 checks passed
@parkertimmins parkertimmins added the >test-failure Triaged test failures from CI label Oct 30, 2025
@parkertimmins
Copy link
Contributor

Just added test-failure label and this comment to force an automation. Normally we wouldn't add the test-failure label, but because test-failure was added originally, this ticket it getting alerted as a test failure. By adding back to label and adding a comment, it forces this ticket to no longer show up in alerts.

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 >test-failure Triaged test failures from CI v9.2.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants