Skip to content

DataStreamsStatsResponse, total_store_size_bytes can be larger than int #379

Closed
@Remcojansen88

Description

@Remcojansen88

Java API client version

8.2.2

Java version

7

Elasticsearch Version

8.2.2

Problem description

Error when getting DataStreamsStatsResponse with a total_store_size_bytes value larger than int value

Probably needed to be fixed in specifications, and changed to a long
https://github.com/elastic/elasticsearch-specification/blob/main/specification/indices/data_streams_stats/IndicesDataStreamsStatsResponse.ts

Failed starting application co.elastic.clients.json.JsonpMappingException:
Error deserializing co.elastic.clients.elasticsearch.indices.DataStreamsStatsResponse: jakarta.json.stream.JsonParsingException: Jackson exception: Numeric value (15273455943) out of range of int (-2147483648 - 2147483647)\n at [Source: (org.apache.http.nio.entity.ContentInputStream); line: 1, column: 133] (JSON path: total_store_size_bytes) (line no=1, column no=133, offset=-1)\n at co.elastic.clients.json.JsonpMappingException.from0(JsonpMappingException.java:134)\n at co.elastic.clients.json.JsonpMappingException.from(JsonpMappingException.java:121)\n at co.elastic.clients.json.ObjectDeserializer.deserialize(ObjectDeserializer.java:206)\n at co.elastic.clients.json.ObjectDeserializer.deserialize(ObjectDeserializer.java:136)\n at

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area: SpecificationRelated to the API spec used to generate client code

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions