Skip to content

ReindexIT#testUpdateByQuery can fail with assertion error. #46301

Closed
@jtibshirani

Description

@jtibshirani

This failure first popped up a couple times in the master intake builds, once in testDeleteByQuery and once in testUpdateByQuery. In both failures, it seems that there is an unexpected task still running after the main test logic has completed.

First build scan: https://gradle-enterprise.elastic.co/s/rasy6lapqbogy
Second build scan: https://gradle-enterprise.elastic.co/s/t5l5j3kplm2fa

A code snippet containing one of the failing assertions:

// any rethrottling after the delete-by-query is done performed with the same taskId should result in a failure
response = execute(new RethrottleRequest(taskIdToRethrottle, requestsPerSecond),
    highLevelClient()::deleteByQueryRethrottle, highLevelClient()::deleteByQueryRethrottleAsync);
assertTrue(response.getTasks().isEmpty());

Metadata

Metadata

Labels

:Distributed Indexing/ReindexIssues relating to reindex that are not caused by issues further down>test-failureTriaged test failures from CI

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions