[
http://jira.nuxeo.org/browse/NXP-3631?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=53860#action_53860
]
Florent Guillaume commented on NXP-3631:
----------------------------------------
Name: Nuxeo Async Events 1-1
State: BLOCKED on org.nuxeo.ecm.core.repository.jcr.jcrreposit...@52954621
owned by: main
Stack trace:
org.apache.jackrabbit.core.RepositoryImpl.getSecurityManager(RepositoryImpl.java:413)
org.apache.jackrabbit.core.RepositoryImpl.login(RepositoryImpl.java:1394)
org.nuxeo.ecm.core.repository.jcr.JCRSession.connect(JCRSession.java:101)
org.nuxeo.ecm.core.repository.jcr.JCRSession.<init>(JCRSession.java:91)
org.nuxeo.ecm.core.repository.jcr.JCRRepository.getSession(JCRRepository.java:116)
org.nuxeo.ecm.core.api.local.LocalSession.createSession(LocalSession.java:87)
org.nuxeo.ecm.core.api.local.LocalSession.getSession(LocalSession.java:124)
org.nuxeo.ecm.core.api.AbstractSession.connect(AbstractSession.java:189)
- locked java.lang.cl...@79aee4b5
org.nuxeo.ecm.core.api.repository.Repository.open(Repository.java:131)
org.nuxeo.ecm.core.api.repository.Repository.open(Repository.java:112)
org.nuxeo.ecm.core.event.impl.ReconnectedEventBundleImpl.getReconnectedCoreSession(ReconnectedEventBundleImpl.java:96)
org.nuxeo.ecm.core.event.impl.ReconnectedEventBundleImpl.getReconnectedEvents(ReconnectedEventBundleImpl.java:118)
org.nuxeo.ecm.core.event.impl.ReconnectedEventBundleImpl.iterator(ReconnectedEventBundleImpl.java:209)
org.nuxeo.ecm.platform.filemanager.core.listener.AsynchronousUnicityCheckListener.handleEvent(AsynchronousUnicityCheckListener.java:52)
org.nuxeo.ecm.core.event.impl.AsyncEventExecutor$Job.run(AsyncEventExecutor.java:139)
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
java.lang.Thread.run(Thread.java:637)
vs
Name: main
State: WAITING on
edu.oswego.cs.dl.util.concurrent.writerpreferencereadwritelock$writerl...@356076ed
Stack trace:
java.lang.Object.wait(Native Method)
java.lang.Object.wait(Object.java:485)
EDU.oswego.cs.dl.util.concurrent.WriterPreferenceReadWriteLock$WriterLock.acquire(Unknown
Source)
org.apache.jackrabbit.core.RepositoryImpl.shutdown(RepositoryImpl.java:1090)
org.nuxeo.ecm.core.repository.jcr.JCRRepository.shutdown(JCRRepository.java:182)
- locked org.nuxeo.ecm.core.repository.jcr.jcrreposit...@52954621
org.nuxeo.ecm.core.repository.jcr.testing.RepositoryOSGITestCase.releaseRepository(RepositoryOSGITestCase.java:119)
org.nuxeo.ecm.core.repository.jcr.testing.RepositoryOSGITestCase.tearDown(RepositoryOSGITestCase.java:73)
org.jmock.core.VerifyingTestCase.runBare(Unknown Source)
junit.framework.TestResult$1.protect(TestResult.java:106)
junit.framework.TestResult.runProtected(TestResult.java:124)
junit.framework.TestResult.run(TestResult.java:109)
junit.framework.TestCase.run(TestCase.java:120)
junit.framework.TestSuite.runTest(TestSuite.java:230)
junit.framework.TestSuite.run(TestSuite.java:225)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
java.lang.reflect.Method.invoke(Method.java:597)
org.apache.maven.surefire.junit.JUnitTestSet.execute(JUnitTestSet.java:213)
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:138)
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:125)
org.apache.maven.surefire.Surefire.run(Surefire.java:132)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
java.lang.reflect.Method.invoke(Method.java:597)
org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:290)
org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:818)
> Avoid deadlocks on unit tests shutdown with JCR
> -----------------------------------------------
>
> Key: NXP-3631
> URL: http://jira.nuxeo.org/browse/NXP-3631
> Project: Nuxeo Enterprise Platform
> Issue Type: Bug
> Components: Core
> Reporter: Florent Guillaume
> Assignee: Florent Guillaume
> Fix For: 5.2.1
>
>
> Observed with Java 6: deadlocks during unit tests shutdown due to async
> thread using the repository concurrently with the main thread shutdown.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.nuxeo.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
_______________________________________________
ECM-tickets mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm-tickets