[
https://issues.jboss.org/browse/ISPN-2958?page=com.atlassian.jira.plugin....
]
Sanne Grinovero commented on ISPN-2958:
---------------------------------------
I don't think the problem is related to the fact that EAP is included, but I'd
rather focus on the fact that there are CacheStores configured, and that everything was
fine until the shutdown. That makes me think that we're failing to store all the
state, or at least it's not exactly as it was in memory.
In other words: it likely is a CacheStore problem, not a Lucene one. Unless I'm wrong
;-)
Lucene Directory Read past EOF
------------------------------
Key: ISPN-2958
URL:
https://issues.jboss.org/browse/ISPN-2958
Project: Infinispan
Issue Type: Bug
Components: Lucene Directory
Affects Versions: 5.2.1.Final
Reporter: Clement Pang
Assignee: Pedro Ruivo
Labels: retest, stable_embedded_query
Fix For: 6.0.0.CR1, 6.0.0.Final
This seems to be happening rather deterministically.
Infinispan configuration (in JBoss EAP 6.1.0.Alpha):
{code}
<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>
{code}
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:
{code}
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
{code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:
http://www.atlassian.com/software/jira