mikemccand commented on PR #12738:
URL: https://github.com/apache/lucene/pull/12738#issuecomment-1790333126

   Thanks @dungba88 -- I will review!
   
   But first I tried running `IndexToFST` (recently born helper tool, now in 
luceneutil) on a `wikimediumall` index, creating the FST from all of its `body` 
field terms, but hit this exciting doozie:
   
   ```
   Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: Index 
-1 out of bounds for length 350                                                 
                                                            
           at 
org.apache.lucene.util.ByteBlockPool.readBytes(ByteBlockPool.java:250)          
                                                                                
                                            
           at 
org.apache.lucene.util.fst.NodeHash$PagedGrowableHash.getBytes(NodeHash.java:248)
                                                                                
                                           
           at org.apache.lucene.util.fst.NodeHash.add(NodeHash.java:121)        
                                                                                
                                                          
           at 
org.apache.lucene.util.fst.FSTCompiler.compileNode(FSTCompiler.java:294)        
                                                                                
                                            
           at 
org.apache.lucene.util.fst.FSTCompiler.freezeTail(FSTCompiler.java:702)         
                                                                                
                                            
           at org.apache.lucene.util.fst.FSTCompiler.add(FSTCompiler.java:776)  
                                                                                
                                                          
           at IndexToFST.main(IndexToFST.java:65)
   ```
   
   Seems like a `lastFallbackNodeLength` was -1 (node not found in fallback) 
sort of situation?  Not sure...


-- 
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

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