Skip to content

[Bug] The saveAll method of a reactive repository received an empty collection or empty publisher hangs forever #3093

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
greenyleaf opened this issue Apr 21, 2025 · 0 comments
Labels
status: waiting-for-triage An issue we've not yet triaged

Comments

@greenyleaf
Copy link

greenyleaf commented Apr 21, 2025

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

@greenyleaf greenyleaf changed the title The saveAll method of an reactive repository received an empty collection or empty publisher hangs forever The saveAll method of an reactive repository received a empty collection or empty publisher hangs forever Apr 21, 2025
@greenyleaf greenyleaf changed the title The saveAll method of an reactive repository received a empty collection or empty publisher hangs forever The saveAll method of a reactive repository received an empty collection or empty publisher hangs forever Apr 21, 2025
@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Apr 21, 2025
@greenyleaf greenyleaf changed the title The saveAll method of a reactive repository received an empty collection or empty publisher hangs forever [Bug] The saveAll method of a reactive repository received an empty collection or empty publisher hangs forever Apr 21, 2025
@greenyleaf greenyleaf changed the title [Bug] The saveAll method of a reactive repository received an empty collection or empty publisher hangs forever [Bug] The saveAll method of a reactive repository received an empty collection or empty publisher will hang forever Apr 22, 2025
@greenyleaf greenyleaf changed the title [Bug] The saveAll method of a reactive repository received an empty collection or empty publisher will hang forever [Bug] The saveAll method of a reactive repository received an empty collection or empty publisher hangs forever Apr 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: waiting-for-triage An issue we've not yet triaged
Projects
None yet
Development

No branches or pull requests

2 participants