Hi all - we've started backing up our elasticsearch cluster into a new S3 bucket/repo and would like to delete the previous bucket/repo that we were using. However, when we try to delete the old repo, we're getting the error:
{"error":{"root_cause":[{"type":"remote_transport_exception","reason":"[MASTER-ip-10-0-0-71][10.0.0.71:9300][cluster:admin/repository/delete]"}],"type":"illegal_state_exception","reason":"trying to modify or unregister repository that is currently used "},"status":500}
We've found that there's a stuck partial restore from months ago that we can't seem to cancel.
We don't care about that restore or this repo. Can we safely just delete the S3 bucket and manually delete the pointers to it on the elasticsearch side?
On 2.1.1, I think that the only way to get rid of this stuck restore task is to restart the cluster. After the restart, you should be able to delete the repository on Elasticsearch and then on S3.
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.