You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-issues@jackrabbit.apache.org by "Chetan Mehrotra (JIRA)" <ji...@apache.org> on 2016/11/07 07:24:58 UTC
[jira] [Comment Edited] (OAK-2722) IndexCopier fails to delete
older index directory upon reindex
[ https://issues.apache.org/jira/browse/OAK-2722?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15643369#comment-15643369 ]
Chetan Mehrotra edited comment on OAK-2722 at 11/7/16 7:24 AM:
---------------------------------------------------------------
This issue was fixed as part of OAK-3629 via [1751236|http://svn.apache.org/viewvc?view=revision&revision=1751236]. The testcase can still not be enabled as un mapping of mapped files depends on GC. See also OAK-4274
was (Author: chetanm):
This issue was fixed as part of OAK-3629 via [1751236|http://svn.apache.org/viewvc?view=revision&revision=1751236]
> IndexCopier fails to delete older index directory upon reindex
> --------------------------------------------------------------
>
> Key: OAK-2722
> URL: https://issues.apache.org/jira/browse/OAK-2722
> Project: Jackrabbit Oak
> Issue Type: Bug
> Components: lucene
> Reporter: Chetan Mehrotra
> Assignee: Chetan Mehrotra
> Priority: Minor
> Labels: resilience
> Fix For: 1.6, 1.5.13
>
>
> {{IndexCopier}} tries to remove the older index directory incase of reindex. This might fails on platform like Windows if the files are still memory mapped or are locked.
> For deleting directories we would need to take similar approach like being done with deleting old index files i.e. do retries later.
> Due to this following test fails on Windows (Per [~julian.reschke@gmx.de] )
> {noformat}
> Tests run: 9, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.07 sec <<< FAILURE!
> deleteOldPostReindex(org.apache.jackrabbit.oak.plugins.index.lucene.IndexCopierTest) Time elapsed: 0.02 sec <<< FAILURE!
> java.lang.AssertionError: Old index directory should have been removed
> at org.junit.Assert.fail(Assert.java:93)
> at org.junit.Assert.assertTrue(Assert.java:43)
> at org.junit.Assert.assertFalse(Assert.java:68)
> at org.apache.jackrabbit.oak.plugins.index.lucene.IndexCopierTest.deleteOldPostReindex(IndexCopierTest.java:160)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)