jackrabbit-oak-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Dürig (JIRA) <j...@apache.org>
Subject [jira] [Commented] (OAK-587) DefaultRevisionStoreTest.testConcurrentGC fails every now and then.
Date Thu, 24 Jan 2013 14:39:13 GMT

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

Michael Dürig commented on OAK-587:
-----------------------------------

Making said test a bit more aggressive I quickly found several exception caught in the catch
all handlers in {{DefaultRvisionStore.gc()}}:

{code}
java.lang.NullPointerException
	at org.apache.jackrabbit.mk.store.DefaultRevisionStore.markUncommittedNodes(DefaultRevisionStore.java:595)
	at org.apache.jackrabbit.mk.store.DefaultRevisionStore.gc(DefaultRevisionStore.java:535)
	at org.apache.jackrabbit.mk.store.DefaultRevisionStoreTest$2.run(DefaultRevisionStoreTest.java:143)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:680)
{code}

{code}
java.util.ConcurrentModificationException
	at java.util.HashMap$HashIterator.nextEntry(HashMap.java:793)
	at java.util.HashMap$EntryIterator.next(HashMap.java:834)
	at java.util.HashMap$EntryIterator.next(HashMap.java:832)
	at java.util.HashMap.putAll(HashMap.java:523)
	at java.util.Collections$SynchronizedMap.putAll(Collections.java:1985)
	at org.apache.jackrabbit.mk.persistence.InMemPersistence.sweep(InMemPersistence.java:182)
	at org.apache.jackrabbit.mk.store.DefaultRevisionStore.gc(DefaultRevisionStore.java:578)
	at org.apache.jackrabbit.mk.store.DefaultRevisionStoreTest$2.run(DefaultRevisionStoreTest.java:143)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:680)
{code}

{code}
org.apache.jackrabbit.mk.store.NotFoundException: 78a45769aec95b5abf0a8d6b75d3ff2648069bd1
	at org.apache.jackrabbit.mk.persistence.InMemPersistence.markObject(InMemPersistence.java:174)
	at org.apache.jackrabbit.mk.persistence.InMemPersistence.markNode(InMemPersistence.java:151)
	at org.apache.jackrabbit.mk.store.DefaultRevisionStore.markNode(DefaultRevisionStore.java:713)
	at org.apache.jackrabbit.mk.store.DefaultRevisionStore.markCommit(DefaultRevisionStore.java:703)
	at org.apache.jackrabbit.mk.store.DefaultRevisionStoreTest$1.markCommits(DefaultRevisionStoreTest.java:64)
	at org.apache.jackrabbit.mk.store.DefaultRevisionStore.gc(DefaultRevisionStore.java:552)
	at org.apache.jackrabbit.mk.store.DefaultRevisionStoreTest$2.run(DefaultRevisionStoreTest.java:143)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:680)
{code}
                
> DefaultRevisionStoreTest.testConcurrentGC fails every now and then.
> -------------------------------------------------------------------
>
>                 Key: OAK-587
>                 URL: https://issues.apache.org/jira/browse/OAK-587
>             Project: Jackrabbit Oak
>          Issue Type: Bug
>          Components: mk
>            Reporter: angela
>
> i marked the failing test with @Ignore.
> it would be nice though if someone could investigate why the test is failing.
> thanks.
> Tests in error: 
>   testConcurrentGC(org.apache.jackrabbit.mk.store.DefaultRevisionStoreTest): java.util.concurrent.ExecutionException:
org.apache.jackrabbit.mk.store.NotFoundException: 78a45769aec95b5abf0a8d6b75d3ff2648069bd1

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message