Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix infinite loop in nested agg #15931

Merged
merged 1 commit into from
Sep 19, 2024
Merged

Conversation

kkewwei
Copy link
Contributor

@kkewwei kkewwei commented Sep 13, 2024

Description

Fix infinite loop in nested agg

Related Issues

Resolves #15914

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.

Copy link
Contributor

❌ Gradle check result for 961eb49: 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?

Copy link
Contributor

❌ Gradle check result for bbd4aa8: 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?

Copy link
Contributor

✅ Gradle check result for 256d698: SUCCESS

Copy link

codecov bot commented Sep 14, 2024

Codecov Report

Attention: Patch coverage is 85.71429% with 1 line in your changes missing coverage. Please review.

Project coverage is 71.95%. Comparing base (b2a7136) to head (3953557).
Report is 5 commits behind head on main.

Files with missing lines Patch % Lines
...java/org/opensearch/index/mapper/ObjectMapper.java 85.71% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff            @@
##               main   #15931   +/-   ##
=========================================
  Coverage     71.94%   71.95%           
+ Complexity    64356    64329   -27     
=========================================
  Files          5278     5278           
  Lines        300876   300878    +2     
  Branches      43478    43479    +1     
=========================================
+ Hits         216475   216502   +27     
+ Misses        66611    66573   -38     
- Partials      17790    17803   +13     

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

Copy link
Member

@dblock dblock left a comment

Choose a reason for hiding this comment

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

Typo in CHANGELOG. Sorry!

CHANGELOG.md Outdated Show resolved Hide resolved
@dblock
Copy link
Member

dblock commented Sep 14, 2024

If you are bored while gradle re-runs, you could add some tests for agg to https://github.com/opensearch-project/opensearch-api-specification and potentially fix any API spec problems with that ;)

@dblock dblock added the backport 2.x Backport to 2.x branch label Sep 14, 2024
@kkewwei
Copy link
Contributor Author

kkewwei commented Sep 14, 2024

If you are bored while gradle re-runs, you could add some tests for agg to https://github.com/opensearch-project/opensearch-api-specification and potentially fix any API spec problems with that ;)

Of course, let me have a try.

@kkewwei kkewwei changed the title Fix infinate loop in nested agg Fix infinite loop in nested agg Sep 14, 2024
Copy link
Contributor

❌ Gradle check result for 693c69b: 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?

Copy link
Contributor

❕ Gradle check result for ab0d430: UNSTABLE

  • TEST FAILURES:
      1 org.opensearch.remotestore.multipart.RemoteStoreMultipartIT.testNoSearchIdleForAnyReplicaCount

Please review all flaky tests that succeeded after retry and create an issue if one does not already exist to track the flaky failure.

@kkewwei
Copy link
Contributor Author

kkewwei commented Sep 14, 2024

❕ Gradle check result for ab0d430: UNSTABLE

  • TEST FAILURES:
      1 org.opensearch.remotestore.multipart.RemoteStoreMultipartIT.testNoSearchIdleForAnyReplicaCount

Please review all flaky tests that succeeded after retry and create an issue if one does not already exist to track the flaky failure.

org.opensearch.remotestore.multipart.RemoteStoreMultipartIT #11997

Signed-off-by: kkewwei <kkewwei@163.com>
Copy link
Contributor

✅ Gradle check result for 3953557: SUCCESS

Copy link
Member

@dbwiddis dbwiddis left a comment

Choose a reason for hiding this comment

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

LGTM. I will approve when the checklist at the top of this PR is completed. Certainly there is testing (box 1) and an API spec (box 2) and it may not need a doc fix (box 3) but I'd prefer to see that assessment done by the PR submitter.

@dblock dblock merged commit 6bef1e1 into opensearch-project:main Sep 19, 2024
37 checks passed
@opensearch-trigger-bot
Copy link
Contributor

The backport to 2.x failed:

The process '/usr/bin/git' failed with exit code 128

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.x 2.x
# Navigate to the new working tree
pushd ../.worktrees/OpenSearch/backport-2.x
# Create a new branch
git switch --create backport/backport-15931-to-2.x
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick -x --mainline 1 6bef1e1d8e2dda8d88c2c8f2a7875b492239a480
# Push it to GitHub
git push --set-upstream origin backport/backport-15931-to-2.x
# Go back to the original working tree
popd
# Delete the working tree
git worktree remove ../.worktrees/OpenSearch/backport-2.x

Then, create a pull request where the base branch is 2.x and the compare/head branch is backport/backport-15931-to-2.x.

@reta
Copy link
Collaborator

reta commented Sep 19, 2024

@kkewwei the issue seems to be not fixed, here is the recent failure (with this pull request merged): #15914 (comment)

@kkewwei kkewwei deleted the fix_nest_loop branch September 21, 2024 09:54
amberzsy pushed a commit to amberzsy/OpenSearch-public that referenced this pull request Sep 22, 2024
Signed-off-by: kkewwei <kkewwei@163.com>
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-failed bug Something isn't working Search Search query, autocomplete ...etc
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] Deep level aggregations query hang the request
5 participants