[ https://issues.apache.org/jira/browse/LUCENE-4238?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13419576#comment-13419576 ]
Robert Muir commented on LUCENE-4238: ------------------------------------- Specifically this line would cause the problem: {noformat} final Directory dir = new NRTCachingDirectory(newFSDirectory(new File(TEST_DIRECTORY)), 0.5, 1);//newDirectory(); {noformat} TEST_DIRECTORY is set by default to "random", so it would be reused across test runs. I changed it to use: {noformat} File tmpdir = _TestUtil.getTempDir("threadSafety"); tmpdir.mkdirs(); {noformat} It always passes for me. However, if your version produces same fail you are seeing, this would be consistent with my previous comments about what happens if you modify files directly on the filesystem underneath NRTCachingDir (e.g. replication handler), because thats essentially what that test bug would cause. > 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 > > Attachments: LUCENE-4238.patch, LUCENE-4238_test.patch > > -- 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: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org