Skip to content

Larger offset when calculating the next histogram bucket to avoid col…#139675

Merged
elasticsearchmachine merged 4 commits intoelastic:mainfrom
gmarouli:test-fixes-downsampling-histograms
Dec 18, 2025
Merged

Larger offset when calculating the next histogram bucket to avoid col…#139675
elasticsearchmachine merged 4 commits intoelastic:mainfrom
gmarouli:test-fixes-downsampling-histograms

Conversation

@gmarouli
Copy link
Copy Markdown
Contributor

We generate legacy histograms in DownsampleIT and we used to small of a delta when generating the histogram values which caused them to collide. We ensure that the delta between the buckets is more than 1.0 fix that.

Fixes #139382

@gmarouli gmarouli added >test Issues or PRs that are addressing/adding tests :StorageEngine/Downsampling Downsampling (replacement for rollups) - Turn fine-grained time-based data into coarser-grained data labels Dec 17, 2025
@gmarouli gmarouli requested a review from kkrik-es December 17, 2025 07:35
@elasticsearchmachine
Copy link
Copy Markdown
Collaborator

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

@gmarouli gmarouli removed the request for review from kkrik-es December 17, 2025 12:43
double minHistogramValue = randomDoubleBetween(0.0, 0.1, true);
for (int i = 0; i < array.length; i++) {
array[i] = minHistogramValue += randomDoubleBetween(0.0, 0.5, true);
array[i] = minHistogramValue += randomDoubleBetween(1.0, 10.0, true);
Copy link
Copy Markdown
Member

@kkrik-es kkrik-es Dec 17, 2025

Choose a reason for hiding this comment

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

0.1 - 10.0?

@gmarouli gmarouli added the auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) label Dec 17, 2025
@gmarouli gmarouli added auto-backport Automatically create backport pull requests when merged branch:9.3 labels Dec 18, 2025
@elasticsearchmachine elasticsearchmachine merged commit 7ac049f into elastic:main Dec 18, 2025
35 checks passed
@gmarouli gmarouli deleted the test-fixes-downsampling-histograms branch December 18, 2025 09:40
@elasticsearchmachine
Copy link
Copy Markdown
Collaborator

💔 Backport failed

Status Branch Result
9.3 Commit could not be cherrypicked due to conflicts

You can use sqren/backport to manually backport by running backport --upstream elastic/elasticsearch --pr 139675

@gmarouli
Copy link
Copy Markdown
Contributor Author

💚 All backports created successfully

Status Branch Result
9.3

Questions ?

Please refer to the Backport tool documentation

gmarouli added a commit to gmarouli/elasticsearch that referenced this pull request Dec 18, 2025
elastic#139675)

We generate legacy histograms in `DownsampleIT` and we used to small of
a delta when generating the histogram values which caused them to
collide. We ensure that the delta between the buckets is more than 1.0
fix that.

Fixes  elastic#139382

(cherry picked from commit 7ac049f)

# Conflicts:
#	muted-tests.yml
elasticsearchmachine pushed a commit that referenced this pull request Dec 18, 2025
#139675) (#139737)

We generate legacy histograms in `DownsampleIT` and we used to small of
a delta when generating the histogram values which caused them to
collide. We ensure that the delta between the buckets is more than 1.0
fix that.

Fixes  #139382

(cherry picked from commit 7ac049f)

# Conflicts:
#	muted-tests.yml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

auto-backport Automatically create backport pull requests when merged auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) backport pending :StorageEngine/Downsampling Downsampling (replacement for rollups) - Turn fine-grained time-based data into coarser-grained data Team:StorageEngine >test Issues or PRs that are addressing/adding tests v9.3.1 v9.4.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[CI] DownsampleIT testAggregateMethod failing

3 participants