Badly corrupted index

Our storage server threw it's toys of the pram. We got it back, and
everything bar ElasticSearch is singing sweetly again.

On start, we get an IndexFormatTooNewException. Not many get that one, but
CheckIndex appears to be worth a go, except that also barfs:

nicks@elasticsearch:/var/lib/elasticsearch/elasticsearch/nodes/0/indices/support/3/index$
sudo java -cp /usr/share/elasticsearch/lib/lucene-core-4.8.1.jar
-ea:org.apache.lucene... org.apache.lucene.index.CheckIndex . -fix
Opening index @ .
ERROR: could not read any segments file in directory
org.apache.lucene.index.IndexFormatTooNewException: Format version is not
supported (resource:
BufferedChecksumIndexInput(MMapIndexInput(path="/var/lib/elasticsearch/elasticsearch/nodes/0/indices/support/3/index/segments.gen"))):
1071082519 (needs to be between -2 and -3)
at
org.apache.lucene.index.SegmentInfos$FindSegmentsFile.run(SegmentInfos.java:803)
at
org.apache.lucene.index.SegmentInfos$FindSegmentsFile.run(SegmentInfos.java:710)
at org.apache.lucene.index.SegmentInfos.read(SegmentInfos.java:412)
at
org.apache.lucene.index.CheckIndex.checkIndex(CheckIndex.java:393)
at org.apache.lucene.index.CheckIndex.main(CheckIndex.java:1967)

This has rendered our ES service offline. Any suggestions to fix it would
be appreciated, we are uncertain how to proceed otherwise.

ES 1.2.1 from Debian packages. We are just (now) upgrading to 1.4 to see if
this results in some progress.

James

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/CAMH6%2BaxYVvHEnjLocbeHh9v5pjReZ0aDds0aOtkjy1sDGmfY1w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

1 Like

Were you ever able to recover from this scenario?