Fix array_index_out_of_bounds_exception with wildcard and aggregations#20842
Fix array_index_out_of_bounds_exception with wildcard and aggregations#20842andrross merged 1 commit intoopensearch-project:mainfrom
Conversation
PR Reviewer Guide 🔍(Review updated until commit 4af9812)Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Latest suggestions up to 4af9812
Previous suggestionsSuggestions up to commit d1a02bd
|
|
❌ Gradle check result for d1a02bd: 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? |
|
@msfroh please take a look at this PR |
msfroh
left a comment
There was a problem hiding this comment.
Thanks @ShawnQiang1!
This makes perfect sense and I'm kind of surprised that it hasn't burned us before.
|
❌ Gradle check result for d1a02bd: 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? |
d1a02bd to
4af9812
Compare
|
Persistent review updated to latest commit 4af9812 |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #20842 +/- ##
=========================================
Coverage 73.32% 73.33%
- Complexity 72267 72297 +30
=========================================
Files 5795 5795
Lines 330056 330057 +1
Branches 47643 47643
=========================================
+ Hits 242030 242054 +24
+ Misses 68584 68580 -4
+ Partials 19442 19423 -19 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
What do you think regarding the backport @msfroh? Looks like a pretty straightforward fix with minimal risk to me. |
Yeah -- I think it makes sense. I'll add the backport tag and fix any merge conflicts as necessary. |
|
The backport to To backport manually, run these commands in your terminal: # Navigate to the root of your repository
cd $(git rev-parse --show-toplevel)
# Fetch latest updates from GitHub
git fetch
# Create a new working tree
git worktree add ../.worktrees/OpenSearch/backport-2.19 2.19
# Navigate to the new working tree
pushd ../.worktrees/OpenSearch/backport-2.19
# Create a new branch
git switch --create backport/backport-20842-to-2.19
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick -x --mainline 1 0e2783c3f042f41c09ad2cf38d96272e5834b4ba
# Push it to GitHub
git push --set-upstream origin backport/backport-20842-to-2.19
# Go back to the original working tree
popd
# Delete the working tree
git worktree remove ../.worktrees/OpenSearch/backport-2.19Then, create a pull request where the |
yes , i just reproduced this bug on 2.19 branch, let me help to backport this |
@ShawnQiang1 Only the 2.19 branch is necessary, thanks! |
|
In fact, I verified on branch 2.19 that my changes fixed the issue I was responsible for. However, during the verification process, I discovered another error. After tracing the source, I found that branch 2.19 was missing this pr #17001 |
|
I've figured it out: the 2.19 branch parted ways with 2.x on 2025/1/30, but this PR was merged into 2.x on 2025/2/19, so it wasn't included. @andrross |
|
According to the roadmap, version 2.19 will actually be the last version of 2.x. The historical mission of 2.x has ended. Shouldn't we consider prohibiting further code merges into 2.x? The backport configuration needs to remove the 2.x branch to prevent the aforementioned incorrect merge issues,Perhaps some changes are needed to the configuration of the CI tools. @andrross @msfroh @cwperks what do you think guys |
|
@ShawnQiang1 I agree the 2.x branch should be removed (see #18603)
Think the problem was that the backport was created on 1/10, prior to the 2.19 branch being created, but not merged until 2/19, and no one caught that this got missed from the 2.19 branch. |
opensearch-project#20842) Signed-off-by: Shawn Qiang <814238703@qq.com> (cherry picked from commit 0e2783c) Signed-off-by: Shawn Qiang <814238703@qq.com>
Description
under concurrent conditions, encountered a situation where multiple threads were simultaneously calling the valueFetcher object, causing the buffer to be read and written at the same time.
I was unable to reproduce the bug in the IT test cases; I only reproduced and fixed the issue locally using the method mentioned in the issue. I would be very grateful if anyone could help supplement the test cases.
This pr need to backport to 2.x
Related Issues
#20838
#18701
Check List
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.