Hi
I have Elastic search version 7.16.3, in this one index is showing RED and when i tried recover it using CheckIndex command "java -cp lucene-core-8.10.1.jar -ea:org.apache.lucene… org.apache.lucene.index.CheckIndex C:\Program Files\data\elasticsearch\data\nodes\0\indices_NHgtxr9TCWE2bYp_hk-nA\0\index\segments_g60\ -verbose -exorcise" its giving following error
NOTE: testing will be more thorough if you run java with '-ea:org.apache.lucene...', so assertions are enabled
Opening index @ C:\PROGRA~1\data\elasticsearch\data\nodes\0\indices_NHgtxr9TCWE2bYp_hk-nA\0\index\
ERROR: could not read any segments file in directory
org.apache.lucene.index.IndexFormatTooOldException: Format version is not supported (resource BufferedChecksumIndexInput(MMapIndexInput(path="C:\Program Files\data\elasticsearch\data\nodes\0\indices_NHgtxr9TCWE2bYp_hk-nA\0\index\segments_g60"))): 1229866072 (needs to be between 1071082519 and 1071082519). This version of Lucene only supports indexes created with release 6.0 and later.
at org.apache.lucene.index.SegmentInfos.readCommit(SegmentInfos.java:307)
at org.apache.lucene.index.SegmentInfos.readCommit(SegmentInfos.java:291)
at org.apache.lucene.index.CheckIndex.checkIndex(CheckIndex.java:522)
at org.apache.lucene.index.CheckIndex.doCheck(CheckIndex.java:2962)
at org.apache.lucene.index.CheckIndex.doMain(CheckIndex.java:2860)
at org.apache.lucene.index.CheckIndex.main(CheckIndex.java:2786)
there is no Elastic upgrade performed on this setup, it was working previously on same ES version version 7.16.3.
INDX( ÜÜ@ß! ( 8 è Ø C Ä<µžRÎêØ>uÎêØ>uÎêØ>uÎêØ m e t a _ d a t a C Ä<µžRÎêØ>uÎêØ>uÎêØ>uÎêØ M E T A _ D ~ 1 µžRÎêصžRÎêصžRÎêصžRÎêØ M E T A _ D ~ 1 C Ä<µžRÎêصžRÎêصžRÎêصžRÎêØ M E T A _ D ~ 1 C Ä<µžRÎêصžRÎê µžRÎêصžRÎêØ M E T A _ D ~ 1 µžRÎêصžRÎêصžRÎêصžRÎêØ M E T A _ D ~ 1 üÉ›u _2jq1£êˆ÷èoR®Ó:üÉ›xLucene87ÿÿÿÿÿÿÿÿ ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ £êˆ÷èoR®Ó:üÉ›z alocal_checkpoint118349max_unsafe_auto_id_timestamp-1
translog_uuidhgWDoc7ySF2gLkRXXe3bcQmin_retained_seq_no118313history_uuid_KmUz15SRJ2ug1AskMN4MQ
es_version7.16.3
max_seq_no118349À(“è 3Í·
old correct segment file :
?×lsegments
öº
FŠé_Tû¾é6ws =Uß× _wl5aÈð-#æîSoÎÍÕLucene80ÿÿÿÿÿÿÿÿ P P R_wl5_28.fnm _wl5_28_Lucene80_0.dvm_wl5_28_Lucene80_0.dvd_xy4JFû‹èݦhYà2V·Lucene80ÿÿÿÿÿÿÿÿ
Thanks warkolm for reply,
System got restarted due to some Windows upgrade and after that it start showing RED, Segment file which was there have different format its starting with "INDX( " while correct one was starting with "?×lsegments", dont know how it happened but now not able to recover it
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.