Skip to content

[CORRUPTED] Synthetic Benchmark PR #139798 - Fix interpolation for data points at bucket boundaries#52

Open
tomerqodo wants to merge 13 commits intobase_pr_139798_20251230_8362from
corrupted_pr_139798_20251230_8362
Open

[CORRUPTED] Synthetic Benchmark PR #139798 - Fix interpolation for data points at bucket boundaries#52
tomerqodo wants to merge 13 commits intobase_pr_139798_20251230_8362from
corrupted_pr_139798_20251230_8362

Conversation

@tomerqodo
Copy link

Benchmark PR elastic#139798

Type: Corrupted (contains bugs)

Original PR Title: Fix interpolation for data points at bucket boundaries
Original PR Description: Interpolation logic didn't cover the case where there's a single data point at the lower boundary and just a previous state, or a single point at the upper boundary and just a next state. If this happens, the data point matches the only interpolated value, so there are no 2 data points within the state to calculate the delta. The fix is to use the delta from the closest data point in the adjacent state.

While there, added the following fixes to the randomized testing suite:

  • Take adjacent buckets into account only when calculating counter deltas across boundaries.
  • Fix delta calculation across boundaries when first and last value are the same (0 delta).

Fixes elastic#139732
Original PR URL: elastic#139798

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants