Bug 1140790 - FileNotFoundException in Lucene
Summary: FileNotFoundException in Lucene
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: JBoss Data Grid 6
Classification: JBoss
Component: Infinispan
Version: 6.3.1
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: CR2
: 6.3.1
Assignee: Tristan Tarrant
QA Contact: Martin Gencur
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-09-11 17:15 UTC by Radim Vansa
Modified: 2015-01-26 14:04 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-01-26 14:04:04 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker ISPN-2981 0 Major Resolved Infinispan as Lucene directory provider has "No sub-file with id .fnm found" errors in distributed mode 2018-11-19 01:27:43 UTC

Description Radim Vansa 2014-09-11 17:15:01 UTC
When writing entry into indexed cache I get multiple FileNotFoundExceptions in the indexer thread:

12:07:37,503 ERROR [org.hibernate.search.exception.impl.LogErrorHandler] (Hibernate Search: Index updates queue processor for index org.radargun.query.NumberObject-1) HSEARCH000058: HSEARCH000117: IOException on the IndexWriter
java.io.FileNotFoundException: No sub-file with id .prx found (fileName=_2rm.cfs files: [.tii, .fnm, .tis, .frq, .fdt, .nrm, .fdx])
        at org.apache.lucene.index.CompoundFileReader.openInput(CompoundFileReader.java:157)
        at org.apache.lucene.index.SegmentCoreReaders.<init>(SegmentCoreReaders.java:96)
        at org.apache.lucene.index.SegmentReader.get(SegmentReader.java:116)
        at org.apache.lucene.index.IndexWriter$ReaderPool.get(IndexWriter.java:696)
        at org.apache.lucene.index.IndexWriter$ReaderPool.get(IndexWriter.java:671)
        at org.apache.lucene.index.BufferedDeletesStream.applyDeletes(BufferedDeletesStream.java:200)
        at org.apache.lucene.index.IndexWriter.doFlush(IndexWriter.java:3615)
        at org.apache.lucene.index.IndexWriter.prepareCommit(IndexWriter.java:3376)
        at org.apache.lucene.index.IndexWriter.commitInternal(IndexWriter.java:3485)
        at org.apache.lucene.index.IndexWriter.commit(IndexWriter.java:3467)
        at org.apache.lucene.index.IndexWriter.commit(IndexWriter.java:3451)
        at org.hibernate.search.backend.impl.lucene.IndexWriterHolder.commitIndexWriter(IndexWriterHolder.java:158)
        at org.hibernate.search.backend.impl.lucene.IndexWriterHolder.commitIndexWriter(IndexWriterHolder.java:171)
        at org.hibernate.search.backend.impl.lucene.ExclusiveIndexWorkspaceImpl.afterTransactionApplied(ExclusiveIndexWorkspaceImpl.java:45)
        at org.hibernate.search.backend.impl.lucene.LuceneBackendQueueTask.applyUpdates(LuceneBackendQueueTask.java:124)
        at org.hibernate.search.backend.impl.lucene.LuceneBackendQueueTask.run(LuceneBackendQueueTask.java:67)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
        at java.util.concurrent.FutureTask.run(FutureTask.java:262)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
        at java.lang.Thread.run(Thread.java:745)

Comment 1 Radim Vansa 2014-09-11 17:16:48 UTC
This error does not appear in upstream Infinspan as it is related to Lucene 3 - in Lucene 4 this has been fixed:

https://issues.apache.org/jira/browse/LUCENE-5541

Comment 3 JBoss JIRA Server 2014-09-15 10:45:06 UTC
Sanne Grinovero <sanne+jbossorg> updated the status of jira ISPN-2981 to Reopened

Comment 4 Gustavo Fernandes 2014-09-15 18:09:39 UTC
PR for jdg-6.3.x  https://github.com/infinispan/jdg/pull/254

Comment 5 Gustavo Fernandes 2014-09-15 19:04:43 UTC
PR for 6.4.x: https://github.com/infinispan/jdg/pull/255

Comment 6 Radim Vansa 2014-09-16 08:38:39 UTC
Test is passing.


Note You need to log in before you can comment on or make changes to this bug.