ElasticHQ / elasticsearch-HQ

Monitoring and Management Web Application for ElasticSearch instances and clusters.
http://www.elastichq.org
Other
4.96k stars 532 forks source link

Wrong ES argument with expunge request #519

Open lsamper opened 4 years ago

lsamper commented 4 years ago

General information

Issue Description

Hi, On the page

http://localhost:5000/#!/clusters/elasticsearch/indices/index_name

When clicking on the button Expunge Deleted, I got a 400 error. The parameter only_expunge_deletes is set to 1. As far as I understand, it should be set to true (or false) Cheers

Source Code / Logs

2020-03-09 15:16:09,524      WARNING     elasticsearch   base.log_request_fail:97    POST http://localhost:9200/index_name/_forcemerge?only_expunge_deletes=1 [status:400 request:0.004s]
2020-03-09 15:16:09,524      DEBUG   elasticsearch   base.log_request_fail:105   > None
2020-03-09 15:16:09,524      DEBUG   elasticsearch   base.log_request_fail:110   < {"error":{"root_cause":[{"type":"illegal_argument_exception","reason":"Failed to parse value [1] as only [true] or [false] are allowed."}],"type":"illegal_argument_exception","reason":"Failed to parse value [1] as only [true] or [false] are allowed."},"status":400}