ViaQ / watches-cli

:watch: CLI tool to pull statistics from Elasticsearch
Apache License 2.0
1 stars 1 forks source link

Call to hot_threads API should use 'type' argument #38

Closed lukas-vlcek closed 7 years ago

lukas-vlcek commented 7 years ago

Symptom:

TypeError: hot_threads() got an unexpected keyword argument 'doc_type'

There seems to be a bug in Elasticsearch-py client that was fixed in https://github.com/elastic/elasticsearch-py/pull/572.

lukas-vlcek commented 7 years ago

Now, watches needs to use elasticsearch-5.4.0 or above. For earlier Python client versions (i.e. <5.4.0) it is expected to fail when hot_threads command is called (or when tests are run).