Skip to content

Update Cluster Health checking logic #1434

@DJRickyB

Description

@DJRickyB

As of elastic/elasticsearch#78968, Elasticsearch does not return a 408 for cluster health timeouts.

We now need to parse the HTTP 200 response for the timed_out field in case of timeouts while a wait_for_* parameter is invoked.

Note that currently the operation relies on a combination of default operation parameters (request-params and retry-until-success) in order to execute, but this may be a good opportunity to abstract the client-level behavior away from the user and provide some opaque wait-for parameters to the operation, then a top-level timeout. This would allow us to abort tests which will never pass the cluster state assertion, rather than the current behavior of hanging indefinitely.

Metadata

Metadata

Assignees

No one assigned

    Labels

    :Benchmark Candidate ManagementAnything affecting how Rally sets up ElasticsearchcleanupLinter changes, reformatting, removal of unused code etc.good first issueSmall, contained changes that are good for newcomershelp wantedWe'd be happy about a community contribution

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions