-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Skip approximation when track_total_hits
is set to true
#18017
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
Skip approximation when track_total_hits
is set to true
#18017
Conversation
Adding @harshavamsi @froh, please correct me if I'm wrong we should skip approximation when track_total_hits is set to true. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #18017 +/- ##
============================================
+ Coverage 72.47% 72.61% +0.13%
- Complexity 67034 67177 +143
============================================
Files 5478 5473 -5
Lines 310132 310036 -96
Branches 45087 45052 -35
============================================
+ Hits 224775 225123 +348
+ Misses 66960 66551 -409
+ Partials 18397 18362 -35 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
d0fdc17
to
e6adbd3
Compare
❌ Gradle check result for e6adbd3: 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? |
e6adbd3
to
5017441
Compare
Signed-off-by: Prudhvi Godithi <[email protected]>
5017441
to
a1453f8
Compare
❕ Gradle check result for a1453f8: UNSTABLE Please review all flaky tests that succeeded after retry and create an issue if one does not already exist to track the flaky failure. |
Hello! |
@harshavamsi @msfroh Just a follow up here please let me know if this change make sense. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! thanks for this change. Can we also update the changelog.
Signed-off-by: Prudhvi Godithi <[email protected]>
Thanks, updated the changelog. |
❌ Gradle check result for 360fb5e: 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? |
❌ Gradle check result for 360fb5e: 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? |
Apologies for the wrong tag again. |
@prudhvigodithi Is this an important bug fix that should be backported to the 3.0 release, or can it wait for 3.1? |
Thanks Andrew yes we should backport it, just added a backport label. |
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-3.0 3.0
# Navigate to the new working tree
pushd ../.worktrees/OpenSearch/backport-3.0
# Create a new branch
git switch --create backport/backport-18017-to-3.0
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick -x --mainline 1 c5e55b0409287d67a9245a6af1db7ef32c394ffb
# Push it to GitHub
git push --set-upstream origin backport/backport-18017-to-3.0
# Go back to the original working tree
popd
# Delete the working tree
git worktree remove ../.worktrees/OpenSearch/backport-3.0 Then, create a pull request where the |
Description
[Draft] Skip approximation when
track_total_hits
is set totrue
, example"track_total_hits": true
goes toInteger.MAX_VALUE
"track_total_hits": false,
goes to 10kwith no
track_total_hits
the default is 10Related Issues
Part of #14406
Check List
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.