Description
TestLucene104ScalarQuantizedVectorsFormat.testDataBlindNoRawFloatVectors occasionally fails with an IllegalArgumentException during randomized test execution.
Context
Introduced in #16030 ("Implement data-blind scalar quantization") where testDataBlindNoRawFloatVectors and related data-blind format tests were added.
java.lang.IllegalArgumentException: StandardDirectoryReader(segments_1:6 _0(11.0.0):c22 _1(11.0.0):c5) has 2 segments instead of exactly one
at org.apache.lucene.tests.util.LuceneTestCaseParent.getOnlyLeafReader(LuceneTestCaseParent.java:1681)
at org.apache.lucene.codecs.lucene104.TestLucene104ScalarQuantizedVectorsFormat.testDataBlindNoRawFloatVectors(TestLucene104ScalarQuantizedVectorsFormat.java:659)
using this bug can be reproduced :-
./gradlew :lucene:core:test --tests "org.apache.lucene.codecs.lucene104.TestLucene104ScalarQuantizedVectorsFormat" -Ptests.seed=D9588E29B239F98E -Ptests.vectorsize=128
Description
TestLucene104ScalarQuantizedVectorsFormat.testDataBlindNoRawFloatVectorsoccasionally fails with anIllegalArgumentExceptionduring randomized test execution.Context
Introduced in #16030 ("Implement data-blind scalar quantization") where
testDataBlindNoRawFloatVectorsand related data-blind format tests were added.