Skip to content

Conversation

@iverase
Copy link
Contributor

@iverase iverase commented Nov 15, 2025

Nightly benchmarks are failing with the following error:

Caused by: java.lang.IllegalStateException: This operation only works with an unpositioned iterator, got current position = 2147483647
        Suppressed: java.lang.IllegalStateException: This operation only works with an unpositioned iterator, got current position = 2147483647

This happens whenever we call EsAcceptDocs#iterator and then EsAcceptDocs#bits and the underlaying structure is not a bitset.

More over if you try the combination EsAcceptDocs#bits and then EsAcceptDocs#iterator you get a different error:

 Exception in thread "main" java.lang.IllegalArgumentException: cost must be >= 0, got -1
        at org.apache.lucene.util.BitSetIterator.<init>(BitSetIterator.java:61)

Therefore in order to run those two methods you need to call EsAcceptDocs#cost. I am hacking this in this PR so we can get some nightly benchmarks data points.

@elasticsearchmachine elasticsearchmachine added the Team:Search Relevance Meta label for the Search Relevance team in Elasticsearch label Nov 15, 2025
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-search-relevance (Team:Search Relevance)

@iverase iverase merged commit e34cc11 into elastic:main Nov 15, 2025
34 checks passed
@iverase iverase deleted the avoidAcceptDocsBug branch November 15, 2025 13:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

>non-issue :Search Relevance/Vectors Vector search Team:Search Relevance Meta label for the Search Relevance team in Elasticsearch v9.3.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants