david-sitsky opened a new issue, #13626:
URL: https://github.com/apache/lucene/issues/13626

   ### Description
   
   One of our internal users hit this error when merging their index after 
loading all documents which contain some vector fields.  I couldn't reproduce 
this myself.  Is there a corner case which has triggered this?
   
   ```
   java.lang.NullPointerException: Cannot read field "vectorEncoding" because 
"fieldEntry" is null
        at 
org.apache.lucene.codecs.lucene99.Lucene99FlatVectorsReader.getFloatVectorValues(Lucene99FlatVectorsReader.java:234)
 ~[lucene-core-9.11.1.jar:9.11.1 0c087dfdd10e0f6f3f6faecc6af4415e671a9e69 - 
2024-06-23 12:31:02]
        at 
org.apache.lucene.codecs.lucene99.Lucene99HnswVectorsReader.getFloatVectorValues(Lucene99HnswVectorsReader.java:240)
 ~[lucene-core-9.11.1.jar:9.11.1 0c087dfdd10e0f6f3f6faecc6af4415e671a9e69 - 
2024-06-23 12:31:02]
        at 
org.apache.lucene.codecs.KnnVectorsWriter$MergedVectorValues.mergeFloatVectorValues(KnnVectorsWriter.java:158)
 ~[lucene-core-9.11.1.jar:9.11.1 0c087dfdd10e0f6f3f6faecc6af4415e671a9e69 - 
2024-06-23 12:31:02]
        at 
org.apache.lucene.codecs.lucene99.Lucene99FlatVectorsWriter.mergeOneFieldToIndex(Lucene99FlatVectorsWriter.java:312)
 ~[lucene-core-9.11.1.jar:9.11.1 0c087dfdd10e0f6f3f6faecc6af4415e671a9e69 - 
2024-06-23 12:31:02]
        at 
org.apache.lucene.codecs.lucene99.Lucene99HnswVectorsWriter.mergeOneField(Lucene99HnswVectorsWriter.java:349)
 ~[lucene-core-9.11.1.jar:9.11.1 0c087dfdd10e0f6f3f6faecc6af4415e671a9e69 - 
2024-06-23 12:31:02]
        at 
org.apache.lucene.codecs.KnnVectorsWriter.merge(KnnVectorsWriter.java:99) 
~[lucene-core-9.11.1.jar:9.11.1 0c087dfdd10e0f6f3f6faecc6af4415e671a9e69 - 
2024-06-23 12:31:02]
        at 
org.apache.lucene.index.SegmentMerger.mergeVectorValues(SegmentMerger.java:257) 
~[lucene-core-9.11.1.jar:9.11.1 0c087dfdd10e0f6f3f6faecc6af4415e671a9e69 - 
2024-06-23 12:31:02]
        at 
org.apache.lucene.index.SegmentMerger.mergeWithLogging(SegmentMerger.java:300) 
~[lucene-core-9.11.1.jar:9.11.1 0c087dfdd10e0f6f3f6faecc6af4415e671a9e69 - 
2024-06-23 12:31:02]
        at org.apache.lucene.index.SegmentMerger.merge(SegmentMerger.java:151) 
~[lucene-core-9.11.1.jar:9.11.1 0c087dfdd10e0f6f3f6faecc6af4415e671a9e69 - 
2024-06-23 12:31:02]
        at 
org.apache.lucene.index.IndexWriter.mergeMiddle(IndexWriter.java:5293) 
~[lucene-core-9.11.1.jar:9.11.1 0c087dfdd10e0f6f3f6faecc6af4415e671a9e69 - 
2024-06-23 12:31:02]
        at org.apache.lucene.index.IndexWriter.merge(IndexWriter.java:4761) 
~[lucene-core-9.11.1.jar:9.11.1 0c087dfdd10e0f6f3f6faecc6af4415e671a9e69 - 
2024-06-23 12:31:02]
        at 
org.apache.lucene.index.IndexWriter$IndexWriterMergeSource.merge(IndexWriter.java:6582)
 ~[lucene-core-9.11.1.jar:9.11.1 0c087dfdd10e0f6f3f6faecc6af4415e671a9e69 - 
2024-06-23 12:31:02]
        at 
org.apache.lucene.index.SerialMergeScheduler.merge(SerialMergeScheduler.java:38)
 ~[lucene-core-9.11.1.jar:9.11.1 0c087dfdd10e0f6f3f6faecc6af4415e671a9e69 - 
2024-06-23 12:31:02]
        at 
org.apache.lucene.index.IndexWriter.executeMerge(IndexWriter.java:2326) 
~[lucene-core-9.11.1.jar:9.11.1 0c087dfdd10e0f6f3f6faecc6af4415e671a9e69 - 
2024-06-23 12:31:02]
        at 
org.apache.lucene.index.IndexWriter.maybeMerge(IndexWriter.java:2321) 
~[lucene-core-9.11.1.jar:9.11.1 0c087dfdd10e0f6f3f6faecc6af4415e671a9e69 - 
2024-06-23 12:31:02]
        at 
org.apache.lucene.index.IndexWriter.forceMerge(IndexWriter.java:2162) 
~[lucene-core-9.11.1.jar:9.11.1 0c087dfdd10e0f6f3f6faecc6af4415e671a9e69 - 
2024-06-23 12:31:02]
   ```  
   
   ### Version and environment details
   
   This is with Lucene 9.11.1.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org
For additional commands, e-mail: issues-h...@lucene.apache.org

Reply via email to