[
https://issues.apache.org/jira/browse/OAK-6517?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16609976#comment-16609976
]
Vikas Saurabh commented on OAK-6517:
------------------------------------
I could reproduce the issue by running them in a loop (using intellij
feature... not a real loop)
The issue is essentially a race condition around when active deletion blob
purge thread (we are using genuine executor service) doesn't see deleted blobs
from main test thread (yet... adding sleep seems to be working ok - reduces
failure rate). A very simple solution is to simply use sameThreadExecutor -
but, I'd first try to see why was it a pooled service in the first place
(afaics, at this time, the test isn't doing anything worth real threads).
> ActiveDeletedBlobCollectionIT.simpleAsyncIndexUpdateBasedBlobCollection
> failing intermittently
> ----------------------------------------------------------------------------------------------
>
> Key: OAK-6517
> URL: https://issues.apache.org/jira/browse/OAK-6517
> Project: Jackrabbit Oak
> Issue Type: Test
> Components: lucene
> Affects Versions: 1.7.1
> Reporter: Vikas Saurabh
> Assignee: Vikas Saurabh
> Priority: Minor
>
> [~chetanm] reported offline that
> {{ActiveDeletedBlobCollectionIT.simpleAsyncIndexUpdateBasedBlobCollection}}
> is failing for him intermittently.
> {noformat}
> Tests run: 2, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 5.746 sec <<<
> FAILURE! - in
> org.apache.jackrabbit.oak.plugins.index.lucene.directory.ActiveDeletedBlobCollectionIT
> simpleAsyncIndexUpdateBasedBlobCollection[WITH_FDS](org.apache.jackrabbit.oak.plugins.index.lucene.directory.ActiveDeletedBlobCollectionIT)
> Time elapsed: 2.301 sec <<< FAILURE!
> java.lang.AssertionError: First GC should delete some chunks
> at
> org.apache.jackrabbit.oak.plugins.index.lucene.directory.ActiveDeletedBlobCollectionIT.simpleAsyncIndexUpdateBasedBlobCollection(ActiveDeletedBlobCollectionIT.java:227)
> Results :
> Failed tests:
> ActiveDeletedBlobCollectionIT.simpleAsyncIndexUpdateBasedBlobCollection:227
> First GC should delete some chunks
> {noformat}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)