Elasticsearch-py: cluster.state(index='name')['routing_table'] not found in client 7.5.1

Created on 9 Mar 2020  路  1Comment  路  Source: elastic/elasticsearch-py

Using the most recent release of the Elasticsearch Python client (7.5.1 at this time), the cluster state endpoint is not defaulting to show _all keys.

7.5.1

client.cluster.state(index=idx).keys()
dict_keys(['cluster_name', 'cluster_uuid'])

7.1.1:

client.cluster.state(index=idx).keys()
dict_keys(['cluster_name', 'cluster_uuid', 'version', 'state_uuid', 'master_node', 'blocks', 'nodes', 'metadata', 'routing_table', 'routing_nodes'])

This omission, if intended, would seem to be something to change in a major release version, rather than a minor release.

This was detected and reported here. This compels me to pin Curator at client version elasticsearch==7.1.0 for now.

bug

Most helpful comment

Yeah this looks like a regression to me, previously there was logic that made metric into "_all" if an index was given by default but since the API is generated in ffe00d0c3899d200e640e33261d0a324e5dbb5ac it looks like that little piece of logic was lost.

Will have to investigate if any other little tidbits like that were lost as well.

>All comments

Yeah this looks like a regression to me, previously there was logic that made metric into "_all" if an index was given by default but since the API is generated in ffe00d0c3899d200e640e33261d0a324e5dbb5ac it looks like that little piece of logic was lost.

Will have to investigate if any other little tidbits like that were lost as well.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

juancar1979 picture juancar1979  路  4Comments

edemauro picture edemauro  路  4Comments

tirkarthi picture tirkarthi  路  6Comments

geudrik picture geudrik  路  6Comments

thekofimensah picture thekofimensah  路  3Comments