ES fails to delete index

Hey guys,

I'm trying to delete an index, and it doesn't seem to be working.

This is the message I'm seeing in the terminal when I run the delete command:

curl -uadmin:$ES_PASS logs.example.com:9200/topbeat--2016.06.14   -XDELETE
{"error":{"root_cause":[{"type":"process_cluster_event_timeout_exception","reason":"failed to process cluster event (delete-index [topbeat--2016.06.14]) within 30s"}],"type":"process_cluster_event_timeout_exception","reason":"failed to process cluster event (delete-index [topbeat--2016

This is the message I'm getting in the logs:

[2016-06-14 11:59:05,420][WARN ][rest.suppressed          ] /topbeat--2016.06.14 Params: {index=topbeat--2016.06.14}
ProcessClusterEventTimeoutException[failed to process cluster event (delete-index [topbeat--2016.06.14]) within 30s]
        at org.elasticsearch.cluster.service.InternalClusterService$2$1.run(InternalClusterService.java:349)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
        at java.lang.Thread.run(Thread.java:745)

I'm running elasticsearch-2.3.1-1 on centos 7.1

I really need to get this index deleted. What can I do to resolve this?

looks like your master node is overloaded while processing cluster state updates. Try again by increasing the master_timeout on the request (for example curl -XDELETE -uadmin:$ES_PASS logs.example.com:9200/topbeat--2016.06.14?master_timeout=5m) to give the master node more time to process the request.

3 Likes