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

[BUG] K-NN build failed on main branch with error: cannot find symbol import org.apache.lucene.codecs.lucene95.Lucene95HnswVectorsFormat; #1382

Closed
ruanyl opened this issue Jan 10, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@ruanyl
Copy link
Member

ruanyl commented Jan 10, 2024

What is the bug?
Build K-NN is failed on main branch with the error:

/tmp/tmpxfw8bw22/k-NN/src/main/java/org/opensearch/knn/index/codec/KNNCodecVersion.java:14: error: cannot find symbol
import org.apache.lucene.codecs.lucene95.Lucene95Codec;
> Task :compileJava FAILED
                                        ^
  symbol:   class Lucene95Codec
  location: package org.apache.lucene.codecs.lucene95
/tmp/tmpxfw8bw22/k-NN/src/main/java/org/opensearch/knn/index/codec/KNN950Codec/KNN950PerFieldKnnVectorsFormat.java:8: error: cannot find symbol
import org.apache.lucene.codecs.lucene95.Lucene95HnswVectorsFormat;
                                        ^
  symbol:   class Lucene95HnswVectorsFormat
  location: package org.apache.lucene.codecs.lucene95
2 errors

This seems related to the new commit in opensearch core: opensearch-project/OpenSearch@4a42150

How can one reproduce the bug?
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

What is the expected behavior?
A clear and concise description of what you expected to happen.

What is your host/environment?

  • OS: [e.g. iOS]
  • Version [e.g. 22]
  • Plugins

Do you have any screenshots?
If applicable, add screenshots to help explain your problem.

Do you have any additional context?
Add any other context about the problem.

@ruanyl ruanyl added bug Something isn't working untriaged labels Jan 10, 2024
@ruanyl
Copy link
Member Author

ruanyl commented Jan 11, 2024

PR opened: #1383

@navneet1v navneet1v added bug Something isn't working and removed untriaged bug Something isn't working labels Jan 11, 2024
@naveentatikonda
Copy link
Member

Lucene Codec is bumped up, these import statements have been fixed and CI is succeeding. So, closing this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants