ElasticHQ / elasticsearch-HQ

Monitoring and Management Web Application for ElasticSearch instances and clusters.

Home Page:http://www.elastichq.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Wrong ES argument with expunge request

lsamper opened this issue · comments

General information

  • OS Platform and Distribution (e.g., Linux Ubuntu 16.04):
    Linux user-desktop 5.3.0-40-generic #32~18.04.1-Ubuntu SMP Mon Feb 3 14:05:59 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux

  • ElasticHQ Version: branch master, Latest commit c82f055 on 15 Nov 2019

  • Elasticsearch Version: 7.6

  • Python version (ignore is using docker image): python3.6

  • Browser Vendor and Version (if applicable):

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}