Skip to content

Conversation

harshavamsi
Copy link
Contributor

Description

As described in #19636, we check the bounds of the ordinal before we seek

Related Issues

Resolves #19636

Check List

  • Functionality includes testing.
  • API changes companion pull request created, if applicable.
  • Public documentation issue/PR created, if applicable.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

@harshavamsi
Copy link
Contributor Author

@msfroh could you take a look since you added this optimization

Signed-off-by: Harsha Vamsi Kalluri <[email protected]>
@harshavamsi harshavamsi force-pushed the fix-prefix-ordinals-index-out-of-bounds branch from e90ffb1 to 7f1e867 Compare October 14, 2025 19:48
@harshavamsi harshavamsi added the v3.4.0 Issues and PRs related to version 3.4.0 label Oct 14, 2025
Copy link
Contributor

@msfroh msfroh left a comment

Choose a reason for hiding this comment

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

Thanks for fixing this!

Copy link
Contributor

❌ Gradle check result for 7f1e867: FAILURE

Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change?

@harshavamsi harshavamsi reopened this Oct 14, 2025
Copy link
Contributor

✅ Gradle check result for 7f1e867: SUCCESS

Copy link

codecov bot commented Oct 14, 2025

Codecov Report

❌ Patch coverage is 66.66667% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 72.99%. Comparing base (252cff8) to head (7f1e867).
⚠️ Report is 7 commits behind head on main.

Files with missing lines Patch % Lines
...arch/aggregations/bucket/terms/IncludeExclude.java 66.66% 1 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##               main   #19637      +/-   ##
============================================
- Coverage     73.11%   72.99%   -0.12%     
+ Complexity    70661    70638      -23     
============================================
  Files          5724     5725       +1     
  Lines        323498   323739     +241     
  Branches      46852    46882      +30     
============================================
- Hits         236518   236326     -192     
- Misses        67846    68330     +484     
+ Partials      19134    19083      -51     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@asimmahmood1 asimmahmood1 added the backport 3.3 Backport to 3.3 branch label Oct 15, 2025
@asimmahmood1
Copy link
Contributor

Since this feature was released in 3.0.0, should backport to 3.1, 3.2, 3.3?

@harshavamsi
Copy link
Contributor Author

harshavamsi commented Oct 16, 2025

yes we should backport this to 3.x since we will release only 3.4 moving forward, no need to backport to 3.x

@harshavamsi harshavamsi added backport 2.19 backport 2.x Backport to 2.x branch labels Oct 16, 2025
Copy link
Contributor

❌ Gradle check result for e160c63: null

Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change?

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

Labels

backport 2.x Backport to 2.x branch backport 2.19 backport 3.3 Backport to 3.3 branch bug Something isn't working _No response_ Search:Resiliency v3.4.0 Issues and PRs related to version 3.4.0

Projects

Status: In-Review

Development

Successfully merging this pull request may close these issues.

[BUG] Include/Exclude on terms aggregation can cause IndexOutOfBoundsException

3 participants