Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Indices.Recovery broken due to wrong type #8435

Open
dawust opened this issue Dec 20, 2024 · 0 comments
Open

Indices.Recovery broken due to wrong type #8435

dawust opened this issue Dec 20, 2024 · 0 comments
Labels

Comments

@dawust
Copy link

dawust commented Dec 20, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants