Skip to content

ES <= 7.10 Watchers : Doesn't handle the version dependencies #1588

Closed

Description

Describe the feature:

Elasticsearch version (bin/elasticsearch --version): 7.10

elasticsearch-py version (elasticsearch.__versionstr__): 7.12.1

Please make sure the major version matches the Elasticsearch server you are running.

Description of the problem including expected versus actual behavior: ES doesn't have /_watcher/_query/watches endpoint till 7.11. But the client, even if the ES version is < 7.11, tries to send request to the same endpoint resulting in below error.
elasticsearch.exceptions.RequestError: RequestError(400, 'invalid_index_name_exception', "Invalid index name [_watcher], must not start with '_', '-', or '+'")

Steps to reproduce:

  1. Make sure the ES version >7 and <7.11
  2. Execute es.xpack.client.watcher.query_watches()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions