-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Replace the deprecated IndexReader APIs with new storedFields() & termVectors() #7792
Conversation
Signed-off-by: luyuncheng <[email protected]>
2. Fixed some calling and Tests Signed-off-by: luyuncheng <[email protected]>
2. Fixed some calling and Tests 3. Spotless java Signed-off-by: luyuncheng <[email protected]>
Gradle Check (Jenkins) Run Completed with:
|
Gradle Check (Jenkins) Run Completed with:
|
Codecov Report
@@ Coverage Diff @@
## main #7792 +/- ##
============================================
- Coverage 71.08% 71.05% -0.03%
+ Complexity 57237 57222 -15
============================================
Files 4758 4758
Lines 269844 269851 +7
Branches 39480 39481 +1
============================================
- Hits 191819 191750 -69
- Misses 61865 61969 +104
+ Partials 16160 16132 -28
|
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 @luyuncheng just a minor comment but looks good to me !
There are no other places we use these 2 deprecated APIs right ?
server/src/main/java/org/opensearch/index/engine/TranslogLeafReader.java
Show resolved
Hide resolved
Signed-off-by: luyuncheng <[email protected]>
Signed-off-by: luyuncheng <[email protected]>
++ Updated |
Gradle Check (Jenkins) Run Completed with:
|
Gradle Check (Jenkins) Run Completed with:
|
Apologies @luyuncheng , conflicts :(, needs rebase with main |
…NOThreadLocal � Conflicts: � CHANGELOG.md
Signed-off-by: luyuncheng <[email protected]>
update CHANGELOG.md Signed-off-by: luyuncheng <[email protected]>
Gradle Check (Jenkins) Run Completed with:
|
Gradle Check (Jenkins) Run Completed with:
|
@reta Thanks. i sync upstream master into this branch, fixed conflicts. and run precommit locally seems success. |
The backport to
To backport manually, run these commands in your terminal: # Fetch latest updates from GitHub
git fetch
# Create a new working tree
git worktree add ../.worktrees/backport-2.x 2.x
# Navigate to the new working tree
pushd ../.worktrees/backport-2.x
# Create a new branch
git switch --create backport/backport-7792-to-2.x
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick -x --mainline 1 4fd6877eef7c9cb0b48268a7505506aeb33278a2
# Push it to GitHub
git push --set-upstream origin backport/backport-7792-to-2.x
# Go back to the original working tree
popd
# Delete the working tree
git worktree remove ../.worktrees/backport-2.x Then, create a pull request where the |
@luyuncheng sadly automation failed, could you please send manual backport to |
@reta OK, let me do it |
…mVectors() (opensearch-project#7792) * 1. Remove calling deprecated document api Signed-off-by: luyuncheng <[email protected]> * 1. Remove calling deprecated document api 2. Fixed some calling and Tests Signed-off-by: luyuncheng <[email protected]> * 1. Remove calling deprecated document api 2. Fixed some calling and Tests 3. Spotless java Signed-off-by: luyuncheng <[email protected]> * add changelog Signed-off-by: luyuncheng <[email protected]> * add changelog Signed-off-by: luyuncheng <[email protected]> * merge main into branch Signed-off-by: luyuncheng <[email protected]> * merge main into branch update CHANGELOG.md Signed-off-by: luyuncheng <[email protected]> --------- Signed-off-by: luyuncheng <[email protected]>
…mVectors() (opensearch-project#7792) * 1. Remove calling deprecated document api Signed-off-by: luyuncheng <[email protected]> * 1. Remove calling deprecated document api 2. Fixed some calling and Tests Signed-off-by: luyuncheng <[email protected]> * 1. Remove calling deprecated document api 2. Fixed some calling and Tests 3. Spotless java Signed-off-by: luyuncheng <[email protected]> * add changelog Signed-off-by: luyuncheng <[email protected]> * add changelog Signed-off-by: luyuncheng <[email protected]> * merge main into branch Signed-off-by: luyuncheng <[email protected]> * merge main into branch update CHANGELOG.md Signed-off-by: luyuncheng <[email protected]> --------- Signed-off-by: luyuncheng <[email protected]>
…3069) There are multiple PRs in core affecting the security plugin that the security plugin needs to adapt to. - opensearch-project/OpenSearch#7792 - opensearch-project/OpenSearch#8826 - opensearch-project/OpenSearch#8668 I am opening a Draft PR that includes a fix for the Lucene-related test failures which was caused by opensearch-project/OpenSearch#7792 Resolves: #3064 Signed-off-by: Craig Perkins <[email protected]>
…pensearch-project#3069) There are multiple PRs in core affecting the security plugin that the security plugin needs to adapt to. - opensearch-project/OpenSearch#7792 - opensearch-project/OpenSearch#8826 - opensearch-project/OpenSearch#8668 I am opening a Draft PR that includes a fix for the Lucene-related test failures which was caused by opensearch-project/OpenSearch#7792 Resolves: opensearch-project#3064 Signed-off-by: Craig Perkins <[email protected]> (cherry picked from commit 08d1734)
…mVectors() (opensearch-project#7792) * 1. Remove calling deprecated document api Signed-off-by: luyuncheng <[email protected]> * 1. Remove calling deprecated document api 2. Fixed some calling and Tests Signed-off-by: luyuncheng <[email protected]> * 1. Remove calling deprecated document api 2. Fixed some calling and Tests 3. Spotless java Signed-off-by: luyuncheng <[email protected]> * add changelog Signed-off-by: luyuncheng <[email protected]> * add changelog Signed-off-by: luyuncheng <[email protected]> * merge main into branch Signed-off-by: luyuncheng <[email protected]> * merge main into branch update CHANGELOG.md Signed-off-by: luyuncheng <[email protected]> --------- Signed-off-by: luyuncheng <[email protected]> Signed-off-by: Kaushal Kumar <[email protected]>
…mVectors() (opensearch-project#7792) * 1. Remove calling deprecated document api Signed-off-by: luyuncheng <[email protected]> * 1. Remove calling deprecated document api 2. Fixed some calling and Tests Signed-off-by: luyuncheng <[email protected]> * 1. Remove calling deprecated document api 2. Fixed some calling and Tests 3. Spotless java Signed-off-by: luyuncheng <[email protected]> * add changelog Signed-off-by: luyuncheng <[email protected]> * add changelog Signed-off-by: luyuncheng <[email protected]> * merge main into branch Signed-off-by: luyuncheng <[email protected]> * merge main into branch update CHANGELOG.md Signed-off-by: luyuncheng <[email protected]> --------- Signed-off-by: luyuncheng <[email protected]> Signed-off-by: Ivan Brusic <[email protected]>
…mVectors() (opensearch-project#7792) * 1. Remove calling deprecated document api Signed-off-by: luyuncheng <[email protected]> * 1. Remove calling deprecated document api 2. Fixed some calling and Tests Signed-off-by: luyuncheng <[email protected]> * 1. Remove calling deprecated document api 2. Fixed some calling and Tests 3. Spotless java Signed-off-by: luyuncheng <[email protected]> * add changelog Signed-off-by: luyuncheng <[email protected]> * add changelog Signed-off-by: luyuncheng <[email protected]> * merge main into branch Signed-off-by: luyuncheng <[email protected]> * merge main into branch update CHANGELOG.md Signed-off-by: luyuncheng <[email protected]> --------- Signed-off-by: luyuncheng <[email protected]> Signed-off-by: Shivansh Arora <[email protected]>
i try to use OpenSearch in production. and in our environment, we have tons of segments, tons of threads, tons of data.
i see there is deprecated API to retrieve document. These API would create many
ThreadLocal StoreFields
and make jvm can not GC. you can see the example in LUCENE#11987.so i PR the code to replace the deprecated api with new
storefields
&termVectors
API and reduced threadlocal creation.