[ 
https://issues.apache.org/jira/browse/LUCENE-4238?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13418644#comment-13418644
 ] 

Mark Miller commented on LUCENE-4238:
-------------------------------------

Not sure the exact details yet, but it appears files can show up in the 
delegate and the cache, and the code considers this a problem. I've seen:
{noformat}
java.io.IOException: cannot uncache file="t1509": it was separately also 
created in the delegate directory
        at 
__randomizedtesting.SeedInfo.seed([6917E11030521BB4:9721BE7090E1E8BC]:0)
        at 
org.apache.lucene.store.NRTCachingDirectory.unCache(NRTCachingDirectory.java:289)
        at 
org.apache.lucene.store.NRTCachingDirectory.close(NRTCachingDirectory.java:261)
{noformat}

and

{noformat}
125733 T925 ccr.RunnerThreadGroup.uncaughtException WARNING RunnerThreadGroup's 
sub thread threw an uncaught exception. 
org.apache.lucene.index.MergePolicy$MergeException: java.lang.AssertionError: 
name=_yd_Lucene40WithOrds_0.tii
        at 
org.apache.lucene.index.ConcurrentMergeScheduler.handleMergeException(ConcurrentMergeScheduler.java:507)
        at 
org.apache.lucene.index.ConcurrentMergeScheduler$MergeThread.run(ConcurrentMergeScheduler.java:480)
Caused by: java.lang.AssertionError: name=_yd_Lucene40WithOrds_0.tii
        at 
org.apache.lucene.store.NRTCachingDirectory.deleteFile(NRTCachingDirectory.java:165)
        at 
org.apache.lucene.index.IndexFileDeleter.deleteFile(IndexFileDeleter.java:568)
        at 
org.apache.lucene.index.IndexFileDeleter.decRef(IndexFileDeleter.java:507)
        at 
org.apache.lucene.index.IndexFileDeleter.decRef(IndexFileDeleter.java:492)
{noformat}

When I saw the second, it may be unrelated, but I also saw:
{noformat}
125492 T923 C6 P47307 oasc.SolrException.log SEVERE java.lang.AssertionError: 
recoveryExecutor-31-thread-1: RefCount is 0 pre-decrement for file "_y8.fdt"
                at 
org.apache.lucene.index.IndexFileDeleter$RefCount.DecRef(IndexFileDeleter.java:614)
                at 
org.apache.lucene.index.IndexFileDeleter.decRef(IndexFileDeleter.java:504)
                at 
org.apache.lucene.index.IndexFileDeleter.decRef(IndexFileDeleter.java:492)
                at 
org.apache.lucene.index.IndexFileDeleter.checkpoint(IndexFileDeleter.java:453)rellim

                at 
org.apache.lucene.index.IndexWriter.checkpoint(IndexWriter.java:2000)
                at 
org.apache.lucene.index.IndexWriter.publishFlushedSegment(IndexWriter.java:2123)
{noformat}
                
> NRTCachingDirectory has concurrency bug(s).
> -------------------------------------------
>
>                 Key: LUCENE-4238
>                 URL: https://issues.apache.org/jira/browse/LUCENE-4238
>             Project: Lucene - Java
>          Issue Type: Bug
>          Components: core/store
>            Reporter: Mark Miller
>             Fix For: 4.0, 5.0
>
>


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to