-
Bug
-
Resolution: Done
-
Major
-
4.0.0.Beta1
-
None
When running unit tests such as: JcrVersioningTest or JcrNodeTypesTest, a lot of the time exceptions like this are seen in the console:
Running org.modeshape.jcr.JcrVersioningTest modeshape-event-dispatcher-3321-thread-5 12:10:38,521 ERROR Error while refreshing index definitions for the "testRepo" repository org.modeshape.jcr.cache.WorkspaceNotFoundException: The workspace The workspace "system" has been deleted. was not found at org.modeshape.jcr.cache.document.WorkspaceCache.checkNotClosed(WorkspaceCache.java:330) at org.modeshape.jcr.cache.document.WorkspaceCache.getRootKey(WorkspaceCache.java:217) at org.modeshape.jcr.cache.document.AbstractSessionCache.getRootKey(AbstractSessionCache.java:223) at org.modeshape.jcr.SystemContent.systemKey(SystemContent.java:132) at org.modeshape.jcr.SystemContent.systemNode(SystemContent.java:190) at org.modeshape.jcr.SystemContent.indexesKey(SystemContent.java:152) at org.modeshape.jcr.SystemContent.indexesNode(SystemContent.java:202) at org.modeshape.jcr.SystemContent.readAllIndexDefinitions(SystemContent.java:564) at org.modeshape.jcr.RepositoryIndexManager.readIndexDefinitions(RepositoryIndexManager.java:746) at org.modeshape.jcr.RepositoryIndexManager.notify(RepositoryIndexManager.java:509) at org.modeshape.jcr.RepositoryQueryManager.notify(RepositoryQueryManager.java:96) at org.modeshape.jcr.bus.RepositoryChangeBus$ChangeSetListenerConsumerAdapter.consume(RepositoryChangeBus.java:153) at org.modeshape.jcr.bus.RepositoryChangeBus$ChangeSetListenerConsumerAdapter.consume(RepositoryChangeBus.java:147) at org.modeshape.common.collection.ring.RingBuffer$ConsumerRunner.run(RingBuffer.java:462) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:724)
The exception(s) I'm seeing always involve the system workspace and don't prevent the test from passing since they are in the "background"
Not sure if this due to the repository being shutdown by the test tearDown() or something else. IMO we should make the async index processing more robust.