LockObtainFailedException / OverlappingFileLockException / IOException (stale file handle) during lucene search indexing
(Doc ID 1671728.1)
Last updated on NOVEMBER 06, 2023
Applies to:
Oracle WebCenter Sites - Version 7.6.2 and laterInformation in this document applies to any platform.
Symptoms
The following exceptions are sometimes seen in sites.log on the management instance:
a)
[2014-04-09 15:23:03,259 CEST] [ERROR] [Thread-31483] [com.fatwire.search.asset] Error met during processing all the Search Queues
com.fatwire.cs.core.search.engine.SearchEngineException: org.apache.lucene.store.LockObtainFailedException: Lock obtain timed out: NativeFSLock@/customer/oracle/wcs-shared/editorial/cs/lucene/Global/write.lock
at com.fatwire.search.lucene.LuceneSearchEngine.index(LuceneSearchEngine.java:184)
at com.fatwire.search.engine.SearchEngineLockWrapper.index(SearchEngineLockWrapper.java:55)
at com.fatwire.search.util.AssetQueueIndexSourceUtil._processAll(AssetQueueIndexSourceUtil.java:101)
at com.fatwire.search.util.AssetQueueIndexSourceUtil.access$000(AssetQueueIndexSourceUtil.java:35)
at com.fatwire.search.util.AssetQueueIndexSourceUtil$indexingRunnable.run(AssetQueueIndexSourceUtil.java:51)
at java.lang.Thread.run(Thread.java:744)
Caused by: org.apache.lucene.store.LockObtainFailedException: Lock obtain timed out: NativeFSLock@/customer/oracle/wcs-shared/editorial/cs/lucene/Global/write.lock
at org.apache.lucene.store.Lock.obtain(Lock.java:85)
at org.apache.lucene.index.IndexWriter.init(IndexWriter.java:1550)
at org.apache.lucene.index.IndexWriter.(IndexWriter.java:1079)
at com.fatwire.search.lucene.LuceneSearchEngine.index(LuceneSearchEngine.java:159)
... 5 more
[2014-04-09 15:23:07,773 CEST] [ERROR] [Thread-31484] [com.fatwire.search.asset] Error during indexing operation
java.nio.channels.OverlappingFileLockException
at sun.nio.ch.SharedFileLockTable.checkList(FileLockTable.java:255)
at sun.nio.ch.SharedFileLockTable.add(FileLockTable.java:152)
at sun.nio.ch.FileChannelImpl.tryLock(FileChannelImpl.java:1056)
at java.nio.channels.FileChannel.tryLock(FileChannel.java:1154)
at COM.FutureTense.Util.NioFileLock$LockFile.lock(NioFileLock.java:359)
...
b)
[2014-04-24 13:35:54,278 CEST] [ERROR] [ Thread-79] [com.fatwire.search.asset] Error met during processing all the Search Queues
com.fatwire.cs.core.search.engine.SearchEngineException: java.io.IOException: background merge hit exception: _o8u:c8470 _o8v:c1->_o8v into _o8w [optimize] [mergeDocStores]
at com.fatwire.search.lucene.LuceneSearchEngine.index(LuceneSearchEngine.java:184)
at com.fatwire.search.engine.SearchEngineLockWrapper.index(SearchEngineLockWrapper.java:55)
at com.fatwire.search.util.AssetQueueIndexSourceUtil._processAll(AssetQueueIndexSourceUtil.java:101)
at com.fatwire.search.util.AssetQueueIndexSourceUtil.access$000(AssetQueueIndexSourceUtil.java:35)
at com.fatwire.search.util.AssetQueueIndexSourceUtil$indexingRunnable.run(AssetQueueIndexSourceUtil.java:51)
at java.lang.Thread.run(Thread.java:744)
Caused by: java.io.IOException: background merge hit exception: _o8u:c8470 _o8v:c1->_o8v into _o8w [optimize] [mergeDocStores]
at org.apache.lucene.index.IndexWriter.optimize(IndexWriter.java:2859)
at org.apache.lucene.index.IndexWriter.optimize(IndexWriter.java:2794)
at org.apache.lucene.index.IndexWriter.optimize(IndexWriter.java:2764)
at com.fatwire.search.lucene.LuceneSearchEngine.index(LuceneSearchEngine.java:175)
... 5 more
Caused by: java.io.IOException: Stale file handle
at java.io.RandomAccessFile.close0(Native Method)
at java.io.RandomAccessFile.close(RandomAccessFile.java:645)
at org.apache.lucene.store.SimpleFSDirectory$SimpleFSIndexOutput.close(SimpleFSDirectory.java:210)
at org.apache.lucene.index.TermInfosWriter.close(TermInfosWriter.java:222)
at org.apache.lucene.index.FormatPostingsFieldsWriter.finish(FormatPostingsFieldsWriter.java:70)
at org.apache.lucene.index.SegmentMerger.mergeTerms(SegmentMerger.java:589)
at org.apache.lucene.index.SegmentMerger.merge(SegmentMerger.java:154)
at org.apache.lucene.index.IndexWriter.mergeMiddle(IndexWriter.java:5045)
at org.apache.lucene.index.IndexWriter.merge(IndexWriter.java:4630)
at org.apache.lucene.index.ConcurrentMergeScheduler.doMerge(ConcurrentMergeScheduler.java:235)
at org.apache.lucene.index.ConcurrentMergeScheduler$MergeThread.run(ConcurrentMergeScheduler.java:291)
...
Cause
To view full details, sign in with your My Oracle Support account. |
|
Don't have a My Oracle Support account? Click to get started! |
In this Document
Symptoms |
Cause |
Solution |
References |