Can you share the logs from Elasticsearch at around the time you're making this request? If you have multiple nodes, I think the ones from the elected master will be the most useful to start with.
It'd be good to rule out a problem in the client you're using. Can you reproduce this using a different client, e.g. running curl -XDELETE http://localhost:9200/drill from the command line?
I just looked into my {extract.path}/logs folder, and could not find any logs from Elasticsearch around the time I was making the DELETE requests (from using Insomnia and using cURL). Please let me know whether I am looking in the wrong place.
└─ $ ▶ curl -v -XDELETE 'http://localhost:9200/drill'
* Trying ::1...
* TCP_NODELAY set
* Connected to localhost (::1) port 9200 (#0)
> DELETE /drill HTTP/1.1
> Host: localhost:9200
> User-Agent: curl/7.52.1
> Accept: */*
>
< HTTP/1.1 200 OK
< content-type: application/json; charset=UTF-8
< content-length: 21
<
* Curl_http_done: called premature == 0
* Connection #0 to host localhost left intact
{"acknowledged":true}
I saw that you are using PowerShell, I suspect that your issue is related to curl being an alias to the Invoke-WebRequest cmdlet. You should try using the cmdlet directly or using a different shell on Windows.
One difference between the two requests is that the GET reads from an existing index while the DELETE will require a cluster state update. If you can not find any issue with the client, e.g. by running the commands from Kibana it may be worthwhile providing some information about the size of your cluster and the number of indices and shards it holds. I would also check Elasticsearch logs for signs of long or frequent GC.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.