Closed
Description
The saveAll
method from an Elasticsearch reactive repository that received an empty collection or empty publisher hangs forever. That method never returns.
The same code for a reactive repository of MongoDB completed successfully.
Example code:
@Test
void saveAllEmptyTest() {
priceItemRepository.saveAll(Collections.emptyList())
.count()
.doOnNext(aLong -> log.info("count: {}", aLong))
.block();
}
and
@Test
void saveAllEmptyTest() {
priceItemRepository.saveAll(Flux.empty())
.count()
.doOnNext(aLong -> log.info("count: {}", aLong))
.block();
}
Version of spring-boot-starter-parent: 3.4.4