Skip to content

Flaky test: TestLucene104ScalarQuantizedVectorsFormat.testDataBlindNoRawFloatVectors fails when segments > 1 #16692

Description

@CH-Abhinav

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions