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

Cleanup unused code in org.opensearch.common.lucene #5306

Merged
merged 1 commit into from
Nov 18, 2022
Merged

Cleanup unused code in org.opensearch.common.lucene #5306

merged 1 commit into from
Nov 18, 2022

Conversation

adnapibar
Copy link
Contributor

Description

Cleanup unused internal code in the o.o.common.lucene package

Issues Resolved

N/A

Check List

  • New functionality includes testing.
    • All tests pass
  • New functionality has been documented.
    • New functionality has javadoc added
  • Commits are signed per the DCO using --signoff
  • Commit changes are listed out in CHANGELOG.md file (See: Changelog)

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.

Signed-off-by: Rabi Panda adnapibar@gmail.com

Signed-off-by: Rabi Panda <adnapibar@gmail.com>

import static org.hamcrest.Matchers.equalTo;

public class LuceneTests extends OpenSearchTestCase {
private static final NamedWriteableRegistry EMPTY_REGISTRY = new NamedWriteableRegistry(Collections.emptyList());

public void testWaitForIndex() throws Exception {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why this test is removed?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The test is for Lucene.waitForIndex() which is not used anywhere.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Fair enough, thank you

@github-actions
Copy link
Contributor

Gradle Check (Jenkins) Run Completed with:

@codecov-commenter
Copy link

Codecov Report

Merging #5306 (3c508cd) into main (a0f022b) will increase coverage by 0.11%.
The diff coverage is n/a.

@@             Coverage Diff              @@
##               main    #5306      +/-   ##
============================================
+ Coverage     70.98%   71.10%   +0.11%     
- Complexity    58121    58167      +46     
============================================
  Files          4704     4704              
  Lines        277312   277266      -46     
  Branches      40149    40147       -2     
============================================
+ Hits         196854   197145     +291     
+ Misses        64356    63975     -381     
- Partials      16102    16146      +44     
Impacted Files Coverage Δ
...main/java/org/opensearch/common/lucene/Lucene.java 75.23% <ø> (+6.62%) ⬆️
...h/common/lucene/search/MultiPhrasePrefixQuery.java 64.06% <ø> (+2.04%) ⬆️
...a/org/opensearch/common/lucene/search/Queries.java 88.09% <ø> (+15.15%) ⬆️
...n/lucene/search/function/WeightFactorFunction.java 90.24% <ø> (+4.19%) ⬆️
...ava/org/opensearch/action/NoSuchNodeException.java 0.00% <0.00%> (-50.00%) ⬇️
...rg/opensearch/index/shard/ShardSplittingQuery.java 34.35% <0.00%> (-45.04%) ⬇️
...h/action/ingest/SimulateDocumentVerboseResult.java 60.71% <0.00%> (-39.29%) ⬇️
...ion/admin/cluster/node/info/PluginsAndModules.java 53.12% <0.00%> (-34.38%) ⬇️
...adcast/BroadcastShardOperationFailedException.java 33.33% <0.00%> (-22.23%) ⬇️
...n/decider/SnapshotInProgressAllocationDecider.java 34.78% <0.00%> (-21.74%) ⬇️
... and 461 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@adnapibar adnapibar merged commit 6c84cbd into opensearch-project:main Nov 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants