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

Fix FieldInfo Parameters Mismatch #1490

Merged

Conversation

naveentatikonda
Copy link
Member

Description

Fix the breaking change coming from apache/lucene#12829 which is failing the build due to mismatch in FieldInfo parameters.

/__w/k-NN/k-NN/src/test/java/org/opensearch/knn/index/codec/KNNCodecTestUtil.java:168: error: constructor FieldInfo in class FieldInfo cannot be applied to given types;
            return new FieldInfo(
                   ^
  required: String,int,boolean,boolean,boolean,IndexOptions,DocValuesType,long,Map<String,String>,int,int,int,int,VectorEncoding,VectorSimilarityFunction,boolean,boolean
  found: String,int,boolean,boolean,boolean,IndexOptions,DocValuesType,long,Map<String,String>,int,int,int,int,VectorEncoding,VectorSimilarityFunction,boolean
  reason: actual and formal argument lists differ in length

Check List

  • Commits are signed as per the DCO using --signoff

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: Naveen Tatikonda <[email protected]>
Copy link

codecov bot commented Feb 21, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (ab9991e) 85.02% compared to head (be8a1ba) 84.96%.

Additional details and impacted files
@@             Coverage Diff              @@
##               main    #1490      +/-   ##
============================================
- Coverage     85.02%   84.96%   -0.06%     
+ Complexity     1278     1277       -1     
============================================
  Files           167      167              
  Lines          5207     5207              
  Branches        493      493              
============================================
- Hits           4427     4424       -3     
- Misses          573      575       +2     
- Partials        207      208       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@naveentatikonda
Copy link
Member Author

We already have an issue created for Failing Rolling Upgrade Tests
#1481

@martin-gaievski
Copy link
Member

what is the lucene version with that change that has been adopted by core?

@naveentatikonda
Copy link
Member Author

what is the lucene version with that change that has been adopted by core?

From 9.9.2 to 9.10.0 https://github.com/opensearch-project/OpenSearch/pull/12392/files

Copy link
Member

@ryanbogan ryanbogan left a comment

Choose a reason for hiding this comment

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

LGTM!

@martin-gaievski
Copy link
Member

do we need to do routine for knn codec version bump?

@naveentatikonda
Copy link
Member Author

do we need to do routine for knn codec version bump?

We can do it when the build fails

@naveentatikonda naveentatikonda merged commit c6ac3db into opensearch-project:main Feb 21, 2024
47 of 49 checks passed
opensearch-trigger-bot bot pushed a commit that referenced this pull request Feb 21, 2024
Signed-off-by: Naveen Tatikonda <[email protected]>
(cherry picked from commit c6ac3db)
naveentatikonda added a commit that referenced this pull request Feb 27, 2024
Signed-off-by: Naveen Tatikonda <[email protected]>
(cherry picked from commit c6ac3db)

Co-authored-by: Naveen Tatikonda <[email protected]>
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.

4 participants