Skip to content

Spring Data Elasticsearch: Health indicator fails with reactive only configuration #21724

@ractive

Description

@ractive

When only a configuration for a ReactiveElasticsearchClient is present (we have created a subclass of AbstractReactiveElasticsearchConfiguration to configure it), the health indicator fails because it uses a default RestClient configured with localhost:9200.

Adding a non-reactive configuration (extending AbstractElasticsearchConfiguration) makes the health check succeed.

My expectation would be that the ElasticsearchRestHealthIndicator uses any rest client configured, also the reactive one.

This happens with Spring Boot 2.3.0 and spring-data-elastisearch 4.0.0.

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