Skip to content

Indices.Recovery broken due to wrong type #8435

Open
@dawust

Description

@dawust

Elastic.Clients.Elasticsearch version: 8.16.3

Elasticsearch version: 8.11.4

.NET runtime version: 9.0.101

Description of the problem including expected versus actual behavior:
A clear and concise description of what the bug is.

Steps to reproduce:

  1. Call client.Indices.Recovery(Async) on an index
  2. Elastic.Transport.UnexpectedTransportException: The JSON value could not be converted to System.Double. Path: $['suggestion_28'].shards[0].index.size.percent | LineNumber: 25 | BytePositionInLine: 30. ---> System.Text.Json.JsonException: The JSON value could not be converted to System.Double. Path: $['suggestion_28'].shards[0].index.size.percent | LineNumber: 25 | BytePositionInLine: 30.
    is thrown

Expected behavior
Recovery(Async) returns a RecoveryResponse without crashing

Provide DebugInformation (if relevant):
According to https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-recovery.html "percent" represents a string including the percent sign. However Percent in RecoveryBytes is of type double and can't be deserialized due to the percent sign.

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