You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by anand chandak <an...@oracle.com> on 2013/12/27 15:27:50 UTC

Error -please help

Hi,

I am running into below errors when running checkindex utility :


/java -cp 
/apps/search/tomcat/webapps/solr/WEB-INF/lib/lucene-core-4.4.0.jar 
org.apache.lucene.index.CheckIndex .//
//
//NOTE: testing will be more thorough if you run java with 
'-ea:org.apache.lucene...', so assertions are enabled//
//
//Opening index @ .//
//
//ERROR: could not read any segments file in directory//
//java.io.EOFException: read past EOF: 
MMapIndexInput(path="/apps/search/data/customers/solr/solr/adidas-archive/data/index.20131227051833263/segments_a")//
//        at 
org.apache.lucene.store.ByteBufferIndexInput.readByte(ByteBufferIndexInput.java:78)//
//        at 
org.apache.lucene.store.ChecksumIndexInput.readByte(ChecksumIndexInput.java:41)//
//        at org.apache.lucene.store.DataInput.readInt(DataInput.java:84)//
//        at 
org.apache.lucene.index.SegmentInfos.read(SegmentInfos.java:320)//
//        at 
org.apache.lucene.index.SegmentInfos$1.doBody(SegmentInfos.java:380)//
//        at 
org.apache.lucene.index.SegmentInfos$FindSegmentsFile.run(SegmentInfos.java:812)//
//        at 
org.apache.lucene.index.SegmentInfos$FindSegmentsFile.run(SegmentInfos.java:663)//
//        at 
org.apache.lucene.index.SegmentInfos.read(SegmentInfos.java:376)//
//        at 
org.apache.lucene.index.CheckIndex.checkIndex(CheckIndex.java:382)//
//        at org.apache.lucene.index.CheckIndex.main(CheckIndex.java:1854)//
/

/
/

/Does that mean my index is corrupt ? And how should I fix it ? This 
error is seen on the slave which is running on 4.x and master on 3.x and 
the index is large size 100g+. Additionally, I am seeing following error 
message in the logs,
/

/

2013-12-27 05:03:32,391 [explicit-fetchindex-cmd] ERROR 
org.apache.solr.handler.ReplicationHandler- SnapPull failed 
:org.apache.solr.common.SolrException: Index fetch failed :
       at 
org.apache.solr.handler.SnapPuller.fetchLatestIndex(SnapPuller.java:485)
       at 
org.apache.solr.handler.ReplicationHandler.doFetch(ReplicationHandler.java:319)
       at 
org.apache.solr.handler.ReplicationHandler$1.run(ReplicationHandler.java:220)
        Caused by: java.io.EOFException: read past EOF: 
MMapIndexInput(path="/apps/search/data/customers/solr/solr/adidas-archive/data/index.20131227050332242/segments_a")
       at 
org.apache.lucene.store.ByteBufferIndexInput.readByte(ByteBufferIndexInput.java:78)
       at 
org.apache.lucene.store.ChecksumIndexInput.readByte(ChecksumIndexInput.java:41)
       at org.apache.lucene.store.DataInput.readInt(DataInput.java:84)
       at org.apache.lucene.index.SegmentInfos.read(SegmentInfos.java:320)
       at 
org.apache.lucene.index.SegmentInfos$1.doBody(SegmentInfos.java:380)
       at 
org.apache.lucene.index.SegmentInfos$FindSegmentsFile.run(SegmentInfos.java:812)
       at 
org.apache.lucene.index.SegmentInfos$FindSegmentsFile.run(SegmentInfos.java:663)
       at org.apache.lucene.index.SegmentInfos.read(SegmentInfos.java:376)
       at org.apache.lucene.index.IndexWriter.<init>(IndexWriter.java:711)
       at 
org.apache.solr.update.SolrIndexWriter.<init>(SolrIndexWriter.java:77)
       at 
org.apache.solr.update.SolrIndexWriter.create(SolrIndexWriter.java:64)
       at 
org.apache.solr.update.DefaultSolrCoreState.createMainIndexWriter(DefaultSolrCoreState.java:267)
       at 
org.apache.solr.update.DefaultSolrCoreState.newIndexWriter(DefaultSolrCoreState.java:179)
       at 
org.apache.solr.update.DirectUpdateHandler2.newIndexWriter(DirectUpdateHandler2.java:632)
       at 
org.apache.solr.handler.SnapPuller.fetchLatestIndex(SnapPuller.java:469)
       ... 2 more/


Any help or guidance is much appreciated.


Thanks,
Anand.