- Affected version
- 2.2.0
When XFES rebuilds an index, it deletes the entire index, creates it and then applies the type mapping. The delete process can fail if the index has been set into read-only mode, which can happen in low-disk space and some other cases.
It would be useful if XFES gave a useful error message on attempting to delete a read-only index, or just silently enabled per-index deleting of read-only indexes before deleting it.
As is, this sort of thing can be done via CLI but it is a little challenging to figure this out.
It would be useful if XFES gave a useful error message on attempting to delete a read-only index, or just silently enabled per-index deleting of read-only indexes before deleting it.
As is, this sort of thing can be done via CLI but it is a little challenging to figure this out.
Code:
curl -XPUT 'localhost:9200/<_index>/_settings' -H 'Content-Type: application/json' -d '{
"index": {
"blocks": {
"read_only_allow_delete": "false"
}
}
}'