Skip to content

Fix bad interaction between optimistic query and query timeout #14639

@msokolov

Description

@msokolov

Description

org.apache.lucene.search.TestSeededKnnFloatVectorQuery.testTimeout test failures demonstrate that when we early terminate (timeout) query execution, the optimistic strategy still tries to collect more hits, but fails because the timeout prevents it, and can then return 0 hits.

NOTE: reproduce with: gradlew test --tests TestSeededKnnFloatVectorQuery.testTimeout -Dtests.seed=FBB7AD01C7763E0 -Dtests.multiplier=3 -Dtests.nightly=true -Dtests.locale=dz-Tibt-BT -Dtests.timezone=Canada/Saskatchewan -Dtests.asserts=true -Dtests.file.encoding=UTF-8

Version and environment details

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions