iverase commented on issue #14127:
URL: https://github.com/apache/lucene/issues/14127#issuecomment-2602937439

   In case useful, I could reduce the test to something like:
   
   ```
     public void testFastCommits() throws IOException {
       IndexWriterConfig config = 
newIndexWriterConfig().setMergePolicy(newTieredMergePolicy());
       try (Directory dir1 = newDirectory(); IndexWriter w1 = new 
IndexWriter(dir1, config)) {
         Document doc = new Document();
         KnnFloatVectorField vectorField = new KnnFloatVectorField("vector", 
new float[]{0});
         doc.add(vectorField);
         for (int i = 0; i < 1000; ++i) {
           int intValue = i % 2 == 0 ? 0 : i % 10;
           vectorField.setVectorValue(new float[]{intValue});
           w1.addDocument(doc);
           if (random().nextInt(4) == 0) {
             w1.commit();
           }
         }
       }
     }
   ```
   
   This test fails ~5% of the times for me locally. 


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