-
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
[Refactor] Remove CollectionUtils.sortAndDedup and use java TreeSet instead of hppc ObjectArrayList #6884
[Refactor] Remove CollectionUtils.sortAndDedup and use java TreeSet instead of hppc ObjectArrayList #6884
Conversation
Gradle Check (Jenkins) Run Completed with:
|
Codecov Report
📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more @@ Coverage Diff @@
## main #6884 +/- ##
============================================
+ Coverage 70.52% 70.79% +0.27%
- Complexity 59112 59255 +143
============================================
Files 4814 4811 -3
Lines 283743 283702 -41
Branches 40915 40912 -3
============================================
+ Hits 200110 200850 +740
+ Misses 67154 66297 -857
- Partials 16479 16555 +76
... and 491 files with indirect coverage changes Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
Gradle Check (Jenkins) Run Completed with:
|
4b9d24d
to
33943f5
Compare
Gradle Check (Jenkins) Run Completed with:
|
...c/main/java/org/opensearch/cluster/routing/allocation/allocator/BalancedShardsAllocator.java
Outdated
Show resolved
Hide resolved
Gradle Check (Jenkins) Run Completed with:
|
Gradle Check (Jenkins) Run Completed with:
|
server/src/main/java/org/opensearch/index/mapper/BinaryFieldMapper.java
Outdated
Show resolved
Hide resolved
server/src/main/java/org/opensearch/index/mapper/BinaryFieldMapper.java
Outdated
Show resolved
Hide resolved
HPPC ObjectArrayLists provide no benefit in CollectionUtils.sortAndDedup and adds an unnecessary library dependency. This commit removes that dependency on hppc by switching the sortAndDeup method to use java.util.Lists. BinaryFieldMapper logic is updated to use the generic java list. Signed-off-by: Nicholas Walter Knize <nknize@apache.org>
ae6571f
to
3aa3164
Compare
Signed-off-by: Nicholas Walter Knize <nknize@apache.org>
I opened a separate PR to explore improving the Note also that I have an upstream Lucene issue opened for multi value support for binary doc values since the size limit was removed. We have a community member interested in contributing their implementation so it's partially stalled. I'd like to not overwork this here in hopes that it will be migrated as a top level Lucene capability. I'll poke that issue again. If there's no movement we'll float the implementation upstream. @navneet1v has expressed desire to work on this as a first Lucene contribution so we could move this conversation there for his awareness if/when he works on adding it. |
Gradle Check (Jenkins) Run Completed with:
|
Gradle Check (Jenkins) Run Completed with:
|
LGTM from my side, @andrross wdyt? |
Thanks all! I've moved the performance conversation to #6897. Getting this multi-value support in Lucene will be a big step (especially for |
@nknize I see you tagged this for 3.0. Any reason not to backport? I don't see any usage of |
No we can retag as |
…nstead of hppc ObjectArrayList (#6884) * [Refactor] CollectionUtils.sortAndDedup to use java lists HPPC ObjectArrayLists provide no benefit in CollectionUtils.sortAndDedup and adds an unnecessary library dependency. This commit removes that dependency on hppc by switching the sortAndDeup method to use java.util.Lists. BinaryFieldMapper logic is updated to use the generic java list. Signed-off-by: Nicholas Walter Knize <nknize@apache.org> * close BytesStreamOutput in CustomBinaryDocValuesField.bytes Signed-off-by: Nicholas Walter Knize <nknize@apache.org> --------- Signed-off-by: Nicholas Walter Knize <nknize@apache.org> (cherry picked from commit 4859e15) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
…nstead of hppc ObjectArrayList (#6884) (#6902) * [Refactor] CollectionUtils.sortAndDedup to use java lists HPPC ObjectArrayLists provide no benefit in CollectionUtils.sortAndDedup and adds an unnecessary library dependency. This commit removes that dependency on hppc by switching the sortAndDeup method to use java.util.Lists. BinaryFieldMapper logic is updated to use the generic java list. * close BytesStreamOutput in CustomBinaryDocValuesField.bytes --------- (cherry picked from commit 4859e15) Signed-off-by: Nicholas Walter Knize <nknize@apache.org> Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
…nstead of hppc ObjectArrayList (opensearch-project#6884) * [Refactor] CollectionUtils.sortAndDedup to use java lists HPPC ObjectArrayLists provide no benefit in CollectionUtils.sortAndDedup and adds an unnecessary library dependency. This commit removes that dependency on hppc by switching the sortAndDeup method to use java.util.Lists. BinaryFieldMapper logic is updated to use the generic java list. Signed-off-by: Nicholas Walter Knize <nknize@apache.org> * close BytesStreamOutput in CustomBinaryDocValuesField.bytes Signed-off-by: Nicholas Walter Knize <nknize@apache.org> --------- Signed-off-by: Nicholas Walter Knize <nknize@apache.org> Signed-off-by: Valentin Mitrofanov <mitrofmep@gmail.com>
HPPC ObjectArrayLists provide no benefit in CollectionUtils.sortAndDedup and adds an unnecessary library dependency. This commit removes that dependency on hppc by switching the sortAndDeup method to use java.util.Lists. BinaryFieldMapper logic is updated to use the generic java list.
relates #5910