SOLR java.io.IOException:无法解冻文件

时间:2014-06-07 04:25:34

标签: solr solrnet

我正在使用SOLR索引,当我尝试在数据库中插入一行时,我收到以下错误,

任何人都可以告诉我为什么会收到此错误以及如何解决此问题?

错误: -

[qtp191908836-19] ERROR org.apache.solr.core.SolrCore  – java.io.IOException: cannot uncache file="_t0_Lucene41_0.pos": it was separately also created in the delegate directory
        at org.apache.lucene.store.NRTCachingDirectory.unCache(NRTCachingDirectory.java:297)
        at org.apache.lucene.store.NRTCachingDirectory.sync(NRTCachingDirectory.java:216)
        at org.apache.lucene.index.IndexWriter.startCommit(IndexWriter.java:4109)
        at org.apache.lucene.index.IndexWriter.prepareCommitInternal(IndexWriter.java:2809)
        at org.apache.lucene.index.IndexWriter.commitInternal(IndexWriter.java:2897)
        at org.apache.lucene.index.IndexWriter.commit(IndexWriter.java:2872)
        at org.apache.solr.update.DirectUpdateHandler2.commit(DirectUpdateHandler2.java:549)
        at org.apache.solr.update.processor.RunUpdateProcessor.processCommit(RunUpdateProcessorFactory.java:95)
        at org.apache.solr.update.processor.UpdateRequestProcessor.processCommit(UpdateRequestProcessor.java:64)
        at org.apache.solr.update.processor.DistributedUpdateProcessor.doLocalCommit(DistributedUpdateProcessor.java:1240)
        at org.apache.solr.update.processor.DistributedUpdateProcessor.processCommit(DistributedUpdateProcessor.java:1219)
        at org.apache.solr.update.processor.LogUpdateProcessor.processCommit(LogUpdateProcessorFactory.java:157)
        at org.apache.solr.handler.loader.XMLLoader.processUpdate(XMLLoader.java:266)
        at org.apache.solr.handler.loader.XMLLoader.load(XMLLoader.java:173)

1 个答案:

答案 0 :(得分:1)

在出现问题时备份您的核心,然后删除错误消息中提到的文件。对我来说,它就像一个魅力。

(该文件应出现在your_core_directory / data / index中)