We have one single node elastic cluster which was running fine till last week. From last week we saw frequently one index got corrupted and went in 'RED' state without any system crash and disk space problem.
When I see a particular index folder I found one corrupted_* file was present with following error
Don't ever delete or otherwise alter the contents of the data directory yourself.
This index was found to be corrupt, almost certainly due to a hardware issue as the message suggests. Disks are nowhere near 100% reliable so this will happen from time to time, and with a single node there's no way for Elasticsearch to recover your data itself. The index may well still be corrupt but Elasticsearch is ignoring it for now because you fiddled with the contents of the data path yourself.
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.