MDA/MDD/TDD/DDD/DDDDDDD
posts - 536, comments - 111, trackbacks - 0, articles - 0
  BlogJava :: 首页 :: 新随笔 :: 联系 :: 聚合  :: 管理

background merge hit exception错误

Posted on 2008-09-12 18:37 leekiang 阅读(2440) 评论(2)  编辑  收藏 所属分类: lucene
Exception in thread "Thread-12" org.apache.lucene.index.MergePolicy$MergeException: java.io.FileNotFoundException: /doc/lucene/_5zk.fnm (没有该文件或目录 (errno:2))
    at org.apache.lucene.index.ConcurrentMergeScheduler$MergeThread.run(ConcurrentMergeScheduler.java:271)
Caused by: java.io.FileNotFoundException: /doc/lucene/_5zk.fnm (没有该文件或目录 (errno:2))
    at java.io.RandomAccessFile.open(Native Method)
    at java.io.RandomAccessFile.<init>(RandomAccessFile.java:212)
    at org.apache.lucene.store.FSDirectory$FSIndexInput$Descriptor.<init>(FSDirectory.java:506)
    at org.apache.lucene.store.FSDirectory$FSIndexInput.<init>(FSDirectory.java:536)
    at org.apache.lucene.store.FSDirectory$FSIndexInput.<init>(FSDirectory.java:531)
    at org.apache.lucene.store.FSDirectory.openInput(FSDirectory.java:440)
    at org.apache.lucene.index.FieldInfos.<init>(FieldInfos.java:57)
    at org.apache.lucene.index.SegmentReader.initialize(SegmentReader.java:298)
    at org.apache.lucene.index.SegmentReader.get(SegmentReader.java:262)
    at org.apache.lucene.index.SegmentReader.get(SegmentReader.java:221)
    at org.apache.lucene.index.IndexWriter.mergeMiddle(IndexWriter.java:3093)
    at org.apache.lucene.index.IndexWriter.merge(IndexWriter.java:2834)
    at org.apache.lucene.index.ConcurrentMergeScheduler$MergeThread.run(ConcurrentMergeScheduler.java:240)
java.io.IOException: background merge hit exception: _5zk:C2223 _5zl:c1 _5zm:c1 _5zn:c1 into _5zo [optimize]
    at org.apache.lucene.index.IndexWriter.optimize(IndexWriter.java:1749)
    at org.apache.lucene.index.IndexWriter.optimize(IndexWriter.java:1689)
    at org.apache.lucene.index.IndexWriter.optimize(IndexWriter.java:1669)
    at com.lucene.index.ArticleIndex.addIndex(ArticleIndex.java:93)
    
    ------------------------------------------------------------------------
    Caused by: java.io.FileNotFoundException: /doc/lucene/_5zk.fnm (没有该文件或目录 (errno:2))
    at java.io.RandomAccessFile.open(Native Method)
    at java.io.RandomAccessFile.<init>(RandomAccessFile.java:212)
    at org.apache.lucene.store.FSDirectory$FSIndexInput$Descriptor.<init>(FSDirectory.java:506)
    at org.apache.lucene.store.FSDirectory$FSIndexInput.<init>(FSDirectory.java:536)
    at org.apache.lucene.store.FSDirectory$FSIndexInput.<init>(FSDirectory.java:531)
    at org.apache.lucene.store.FSDirectory.openInput(FSDirectory.java:440)
    at org.apache.lucene.index.FieldInfos.<init>(FieldInfos.java:57)
    at org.apache.lucene.index.SegmentReader.initialize(SegmentReader.java:298)
    at org.apache.lucene.index.SegmentReader.get(SegmentReader.java:262)
    at org.apache.lucene.index.SegmentReader.get(SegmentReader.java:221)
    at org.apache.lucene.index.IndexWriter.mergeMiddle(IndexWriter.java:3093)
    at org.apache.lucene.index.IndexWriter.merge(IndexWriter.java:2834)
    at org.apache.lucene.index.ConcurrentMergeScheduler$MergeThread.run(ConcurrentMergeScheduler.java:240)
org.apache.lucene.index.MergePolicy$MergeException: java.io.FileNotFoundException: /doc/lucene/_5zk.fnm (没有该文件或目录 (errno:2))
    at org.apache.lucene.index.ConcurrentMergeScheduler$MergeThread.run(ConcurrentMergeScheduler.java:271)
Caused by: java.io.FileNotFoundException: /doc/lucene/_5zk.fnm (没有该文件或目录 (errno:2))
    at java.io.RandomAccessFile.open(Native Method)
    at java.io.RandomAccessFile.<init>(RandomAccessFile.java:212)
    at org.apache.lucene.store.FSDirectory$FSIndexInput$Descriptor.<init>(FSDirectory.java:506)
    at org.apache.lucene.store.FSDirectory$FSIndexInput.<init>(FSDirectory.java:536)
    at org.apache.lucene.store.FSDirectory$FSIndexInput.<init>(FSDirectory.java:531)
    at org.apache.lucene.store.FSDirectory.openInput(FSDirectory.java:440)
    at org.apache.lucene.index.FieldInfos.<init>(FieldInfos.java:57)
    at org.apache.lucene.index.SegmentReader.initialize(SegmentReader.java:298)
    at org.apache.lucene.index.SegmentReader.get(SegmentReader.java:262)
    at org.apache.lucene.index.SegmentReader.get(SegmentReader.java:221)
    at org.apache.lucene.index.IndexWriter.mergeMiddle(IndexWriter.java:3093)
    at org.apache.lucene.index.IndexWriter.merge(IndexWriter.java:2834)
    at org.apache.lucene.index.ConcurrentMergeScheduler$MergeThread.run(ConcurrentMergeScheduler.java:240)
org.apache.lucene.store.LockObtainFailedException: Lock obtain timed out: SimpleFSLock@/doc/lucene/write.lock
    at org.apache.lucene.store.Lock.obtain(Lock.java:85)
    at org.apache.lucene.index.IndexWriter.init(IndexWriter.java:691)
    at org.apache.lucene.index.IndexWriter.<init>(IndexWriter.java:502)
    at com.lucene.index.AttachIndex.addIndex(AttachIndex.java:80)
    at com.myapp.Article.uploadAttach(Article.java:793)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)

评论

# re: background merge hit exception错误  回复  更多评论   

2010-06-03 20:51 by ren.ke1515@gmail.com
这个错误怎么处理的?我现在也出现这个错误。

# re: background merge hit exception错误  回复  更多评论   

2012-07-07 23:50 by xiaohui
这个问题你是怎么处理的啊?

只有注册用户登录后才能发表评论。


网站导航: