help wanted
Repository metrics
- Stars
- (259 stars)
- PR merge metrics
- (PR metrics pending)
Description
How to reproduce:
- Specify the
--force_delete_index=Trueoption - Expected result: the index is deleted
- Actual result: a
400 Bad Request erroris returned by Elasticsearch, the index is not deleted
Fix:
- Remove
?refresh=truefrom the url variable in function delete_index
- url = "%s/%s?refresh=true" % (tornado.options.options.es_url, idx_name)
+ url = "%s/%s" % (tornado.options.options.es_url, idx_name)