Skip to content

Regression: simulateIndexTemplate requires indexTemplate in 8.19.+ (worked in 8.19.0) #1185

@MamathaJagadeesh

Description

@MamathaJagadeesh

Java API client version

8.19.+

Java version

17

Elasticsearch Version

8.19.+

Problem description

SimulateIndexTemplateRequest in the Java client appears to require the indexTemplate property in 8.19.+ versions.
When using the Java client in 8.19.+, the following throws a MissingRequiredPropertyException unless indexTemplate is set.
SimulateIndexTemplateResponse response = client.indices().simulateIndexTemplate(b -> b.name(indexName));
This worked correctly in 8.19.0, so it appears to be a regression in the 8.19.+ client.
In 8.19.+, the above fails with co.elastic.clients.util.MissingRequiredPropertyException: Missing required property 'SimulateIndexTemplateRequest.indexTemplate'
8.19.0 → works
8.19.+ → fails with MissingRequiredPropertyException
Server version: Elasticsearch 8.19.x

Expected behavior:
The request should succeed and simulate template resolution for the provided index name in 8.19.+, similar to how it used to succeed in 8.19.0

Is there a planned fix in a future client release?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions