Skip to content

Reactive saveAll errors are swallowed in AbstractReactiveElasticsearchTemplate #3233

@noel1155

Description

@noel1155

Description

In AbstractReactiveElasticsearchTemplate, the reactive saveAll operation (used by save(Publisher<T> entities, ...) methods) uses an internal subscriber that lacks an error handler.

Steps to Reproduce

When a Flux emitting entities causes an error during processing (e.g., a transformation error or upstream failure), the error is swallowed by the inner subscriber. This causes the resulting Flux to hang indefinitely or terminate without the error signal reaching the caller.

Expected Behavior

Errors occurring during the reactive save operation should be propagated to the subscriber of the returned Flux.

Actual Behavior

Errors are swallowed in the internal .subscribe() call.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions