-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Fixed inefficient Stream API call chains ending with count() #15386
Conversation
❌ Gradle check result for 72ebe23: 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? |
modules/percolator/src/main/java/org/opensearch/percolator/QueryAnalyzer.java
Outdated
Show resolved
Hide resolved
This PR is stalled because it has been open for 30 days with no activity. |
❌ Gradle check result for f18aade: 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? |
@dk2k I think you will have to rebase your changes against main branch for gradle checks to succeed since 2.17 is released after this PR was opened up. |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #15386 +/- ##
============================================
- Coverage 72.00% 71.99% -0.01%
+ Complexity 64817 64806 -11
============================================
Files 5307 5307
Lines 302660 302664 +4
Branches 43724 43726 +2
============================================
- Hits 217931 217914 -17
+ Misses 66906 66875 -31
- Partials 17823 17875 +52 ☔ View full report in Codecov by Sentry. |
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.
Thanks for these changes, @dk2k ! Appreciate your patience as we've reviewed them.
One last thing we'd like is an entry in CHANGELOG.md summarizing this PR. There's an open issue on percolator performance (#16285) so adding an entry showing an attempt to improve at least a portion of it would be helpful.
Ready to approve pending this entry.
❕ Gradle check result for 12d35f1: 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. |
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.
Re-approving, will merge once CI completes
Signed-off-by: Dmitry Kryukov <dk2k@ya.ru>
Signed-off-by: Dmitry Kryukov <dk2k@ya.ru>
3208bc2
to
e89eb68
Compare
Signed-off-by: Dmitry Kryukov <dk2k@ya.ru>
e89eb68
to
6e65bca
Compare
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.x 2.x
# Navigate to the new working tree
pushd ../.worktrees/OpenSearch/backport-2.x
# Create a new branch
git switch --create backport/backport-15386-to-2.x
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick -x --mainline 1 1a7018abf1884a287d05681358efa600471c810b
# Push it to GitHub
git push --set-upstream origin backport/backport-15386-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 |
…rch-project#15386) * Fixed inefficient Stream API call chains ending with count() Signed-off-by: Dmitry Kryukov <dk2k@ya.ru> * Refactored method minTermLength() as per @sandeshkr419's advice Signed-off-by: Dmitry Kryukov <dk2k@ya.ru> * Added a line in CHANGELOG.md Signed-off-by: Dmitry Kryukov <dk2k@ya.ru> --------- Signed-off-by: Dmitry Kryukov <dk2k@ya.ru>
…rch-project#15386) * Fixed inefficient Stream API call chains ending with count() Signed-off-by: Dmitry Kryukov <dk2k@ya.ru> * Refactored method minTermLength() as per @sandeshkr419's advice Signed-off-by: Dmitry Kryukov <dk2k@ya.ru> * Added a line in CHANGELOG.md Signed-off-by: Dmitry Kryukov <dk2k@ya.ru> --------- Signed-off-by: Dmitry Kryukov <dk2k@ya.ru>
…rch-project#15386) * Fixed inefficient Stream API call chains ending with count() Signed-off-by: Dmitry Kryukov <dk2k@ya.ru> * Refactored method minTermLength() as per @sandeshkr419's advice Signed-off-by: Dmitry Kryukov <dk2k@ya.ru> * Added a line in CHANGELOG.md Signed-off-by: Dmitry Kryukov <dk2k@ya.ru> --------- Signed-off-by: Dmitry Kryukov <dk2k@ya.ru>
…rch-project#15386) * Fixed inefficient Stream API call chains ending with count() Signed-off-by: Dmitry Kryukov <dk2k@ya.ru> * Refactored method minTermLength() as per @sandeshkr419's advice Signed-off-by: Dmitry Kryukov <dk2k@ya.ru> * Added a line in CHANGELOG.md Signed-off-by: Dmitry Kryukov <dk2k@ya.ru> --------- Signed-off-by: Dmitry Kryukov <dk2k@ya.ru>
…rch-project#15386) * Fixed inefficient Stream API call chains ending with count() Signed-off-by: Dmitry Kryukov <dk2k@ya.ru> * Refactored method minTermLength() as per @sandeshkr419's advice Signed-off-by: Dmitry Kryukov <dk2k@ya.ru> * Added a line in CHANGELOG.md Signed-off-by: Dmitry Kryukov <dk2k@ya.ru> --------- Signed-off-by: Dmitry Kryukov <dk2k@ya.ru>
…#16361) * Fixed inefficient Stream API call chains ending with count() * Refactored method minTermLength() as per @sandeshkr419's advice * Added a line in CHANGELOG.md --------- Signed-off-by: Dmitry Kryukov <dk2k@ya.ru> Signed-off-by: Daniel Widdis <widdis@gmail.com> Co-authored-by: Dmitry Kryukov <dk2k@ya.ru>
…rch-project#15386) * Fixed inefficient Stream API call chains ending with count() Signed-off-by: Dmitry Kryukov <dk2k@ya.ru> * Refactored method minTermLength() as per @sandeshkr419's advice Signed-off-by: Dmitry Kryukov <dk2k@ya.ru> * Added a line in CHANGELOG.md Signed-off-by: Dmitry Kryukov <dk2k@ya.ru> --------- Signed-off-by: Dmitry Kryukov <dk2k@ya.ru>
Fixed inefficient Stream API call chains ending with count()