Error loading metadata for index file: _c4.cfs|M|customerIndex
johnbesel Jan 14, 2013 9:33 AMHello together,
I have a problem when I have 1Mio entries in my lucene index managed by infinispanDirectory. (version of infinispan: 5.2 CR1)
When I try to open directory for read entries from index I get follow exception. (load entries into index seems to work fine)
[ERROR] Simon.Dispatcher.WorkerPool.#1 14.01 15:22:32.056 (CustomerServiceSessionFacade.java:70) getCustomerList(..) Error in getCustomerList
java.io.FileNotFoundException: Error loading metadata for index file: _c4.cfs|M|customerIndex
at org.infinispan.lucene.InfinispanDirectory.openInput(InfinispanDirectory.java:286)
at org.apache.lucene.store.Directory.openInput(Directory.java:145)
at org.apache.lucene.index.CompoundFileReader.<init>(CompoundFileReader.java:65)
at org.apache.lucene.index.SegmentCoreReaders.<init>(SegmentCoreReaders.java:75)
at org.apache.lucene.index.SegmentReader.get(SegmentReader.java:116)
at org.apache.lucene.index.SegmentReader.get(SegmentReader.java:94)
at org.apache.lucene.index.DirectoryReader.<init>(DirectoryReader.java:105)
at org.apache.lucene.index.ReadOnlyDirectoryReader.<init>(ReadOnlyDirectoryReader.java:27)
at org.apache.lucene.index.DirectoryReader$1.doBody(DirectoryReader.java:78)
at org.apache.lucene.index.SegmentInfos$FindSegmentsFile.run(SegmentInfos.java:709)
at org.apache.lucene.index.DirectoryReader.open(DirectoryReader.java:72)
at org.apache.lucene.index.IndexReader.open(IndexReader.java:256)
at com.henkel.esb.customerservice.server.customerlist.CustomerIndexer.search(CustomerIndexer.java:257)
after entries are in the lucene Index I commit and close the writer.
when the use look for certain entry I open the Reader like this:
IndexReader indexReader = IndexReader.open(customerIndexDirectory);
LOG.info("There are " + indexReader.numDocs() + "in CustomerIndex");
IndexSearcher indexSearcher = new IndexSearcher(indexReader);
BooleanQuery booleanQuery = createSearchQuery(filter);
.
I get this exception also on my local mashine, even I have only one instance of the application.
My infinispan Configuration:
<namedCache name="customerIndexerCache">
<eviction />
<clustering mode="replication" />
</namedCache>
<default>
<storeAsBinary />
<!-- Tunes the locking and concurrency characteristics of the cache. See:
http://community.jboss.org/wiki/LockingandConcurrency -->
<locking isolationLevel="READ_COMMITTED"
lockAcquisitionTimeout="20000" writeSkewCheck="false"
concurrencyLevel="5000" useLockStriping="false" />
<invocationBatching enabled="true" />
<!-- This element specifies that the cache is clustered. modes supported:
distribution (d), replication (r) or invalidation (i). http://community.jboss.org/wiki/Clusteringmodes -->
<clustering mode="replication">
<!-- Network calls are synchronous. -->
<sync replTimeout="20000" />
</clustering>
</default>
Can anybody help me.
Is anythng wrong in my configuration?
or is this a bug of infinispan?
thank you for your help