Spring Data Elasticsearch ReactiveElasticsearchTemplate logs a lot of warnings: pit/search_after was cancelled

83 Views Asked by At

What does this warning mean and how to get rid of it?

pit/search_after was cancelled

logger: org.springframework.data.elasticsearch.client.elc.ReactiveElasticsearchTemplate

We have a spring-data-elasticsearch:jar:5.2.0 with spring-boot:3.2.0, but our Elasticsearch still run in some old version: 7.17.8

Might this be a cause?

1

There are 1 best solutions below

0
P.J.Meisch On

This is logged when the Flux returned by ReactiveElasticsearchTemplate.search method is cancelled. You can set the log level of org.springframework.data.elasticsearch.client.elc.ReactiveElasticsearchTemplate to less than WARN, or consume the data from the returned Flux.