Skip to content

Recovery API supports details param not detailed #28910

@javanna

Description

@javanna

As part of #28878 we discovered that the recovery API accepts a detailed parameter, also documented, that is unused. The parameter should rather be called details (see https://github.com/elastic/elasticsearch/blob/master/server/src/main/java/org/elasticsearch/indices/recovery/RecoveryState.java#L918), although it's no longer accepted by the recovery API since we introduced parameters validation. Also the detailed flag is transported to the response, without being serialized nor printed out, where it should be removed.

We should make this work, by either accepting the details param instead and updating docs and spec or modifying RecoveryState to look for detailed instead of details. The detailed flag though doesn't need to be part of the response, and does not need to be part of the request either, given that RestRequest is provided as Params argument to the toXContent method.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions