Skip to content

MissingRequiredPropertyException in PIT query #921

@floorleap

Description

@floorleap

Java API client version

8.17.0

Java version

17 (kotlin 2.0.x)

Elasticsearch Version

8.17.0

Problem description

Hi, I'm getting an exception when running a PIT request. The missing field is OpenPointInTimeResponse.shards. . Filing a bug as requested in the docs.

I initially posted in a different ticket. I was told there it is probably related to this recent change. The elasticsearch server should always send _shard in the response from version 8.16.0 forward.

Thanks!


The first error was caused by: node: https://localhost:50388/, status: 200, [es/open_point_in_time] Failed to decode response
co.elastic.clients.transport.TransportException: node: https://localhost:50388/, status: 200, [es/open_point_in_time] Failed to decode response
	at co.elastic.clients.transport.ElasticsearchTransportBase.decodeTransportResponse(ElasticsearchTransportBase.java:409)
	at co.elastic.clients.transport.ElasticsearchTransportBase.getApiResponse(ElasticsearchTransportBase.java:367)
	at co.elastic.clients.transport.ElasticsearchTransportBase.performRequest(ElasticsearchTransportBase.java:148)
	at co.elastic.clients.elasticsearch.ElasticsearchClient.openPointInTime(ElasticsearchClient.java:1809)
[...]

Caused by: co.elastic.clients.util.MissingRequiredPropertyException: Missing required property 'OpenPointInTimeResponse.shards'

cc @l-trotta

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions