Uploaded image for project: 'Infinispan'
  1. Infinispan
  2. ISPN-2958

Lucene Directory Read past EOF

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved (View Workflow)
    • Major
    • Resolution: Can't Do
    • 5.2.1.Final
    • None
    • Lucene Directory
    • None

    Description

      This seems to be happening rather deterministically.

      Infinispan configuration (in JBoss EAP 6.1.0.Alpha):

      <cache-container name="lucene">                                     
          <local-cache name="dshell-index-data" start="EAGER">            
              <eviction strategy="LIRS" max-entries="50000"/>             
              <file-store path="lucene" passivation="true" purge="false"/>
          </local-cache>                                                  
          <local-cache name="dshell-index-metadata" start="EAGER">        
              <file-store path="lucene" passivation="true" purge="false"/>
          </local-cache>                                                  
          <local-cache name="dshell-index-lock" start="EAGER">            
              <file-store path="lucene" passivation="true" purge="false"/>
          </local-cache>                                                  
      </cache-container>                                                  
      

      Upon shutting down the server and confirming that passivation did indeed write the data to disk, the subsequent start-up would fail right away with:

      Caused by: org.hibernate.search.SearchException: Could not initialize index
      	at org.hibernate.search.store.impl.DirectoryProviderHelper.initializeIndexIfNeeded(DirectoryProviderHelper.java:162)
      	at org.hibernate.search.infinispan.impl.InfinispanDirectoryProvider.start(InfinispanDirectoryProvider.java:103)
      	at org.hibernate.search.indexes.impl.DirectoryBasedIndexManager.initialize(DirectoryBasedIndexManager.java:104)
      	at org.hibernate.search.indexes.impl.IndexManagerHolder.createIndexManager(IndexManagerHolder.java:227)
      	... 64 more
      Caused by: java.io.IOException: Read past EOF
      	at org.infinispan.lucene.SingleChunkIndexInput.readByte(SingleChunkIndexInput.java:77)
      	at org.apache.lucene.store.ChecksumIndexInput.readByte(ChecksumIndexInput.java:41)
      	at org.apache.lucene.store.DataInput.readInt(DataInput.java:86)
      	at org.apache.lucene.index.SegmentInfos.read(SegmentInfos.java:272)
      	at org.apache.lucene.index.IndexFileDeleter.<init>(IndexFileDeleter.java:182)
      	at org.apache.lucene.index.IndexWriter.<init>(IndexWriter.java:1168)
      	at org.hibernate.search.store.impl.DirectoryProviderHelper.initializeIndexIfNeeded(DirectoryProviderHelper.java:157)
      	... 67 more
      

      Attachments

        Activity

          People

            sgrinove Sanne Grinovero
            clementp_jira Clement Pang (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: