Skip to content

Errors are silent in delete by query in ReactiveElasticsearchTemplate #1679

Closed
@efreeti

Description

@efreeti

One the level of ReactiveElasticsearchClient the deleteBy method returns BulkByScrollResponse which in itself contains a list of failures during the search or delete phase. On the level of ReactiveElasticsearchTemplate though those failures are ignored and only totals are extracted - https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/main/java/org/springframework/data/elasticsearch/core/ReactiveElasticsearchTemplate.java#L535

This makes it impossible to catch failures during the delete phase on the level of ReactiveElasticsearchOperations unless you extend that class and override that behaviour. The affected count on it's own is not enough to make conclusions if there are errors so it's pretty leaky abstraction. I combination with multiGet giving no possibility to detect errors it makes automation of bulk updates/removals quite unstable.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions