Description
Running LargeOperationIT against MongoDB results in a MicroKernelException in the setup method [1]. This was introduced with http://svn.apache.org/r1595875 as it didn't occur before.
The fasted way to reproduce the issue is probably to comment the segment fixture out in LargeOperationIT#fixtures before running the test. Also note that you need to run with -DLargeOperationIT=true as otherwise the test is just skipped.
[1]
org.apache.jackrabbit.mk.api.MicroKernelException: com.mongodb.CommandFailureException: { "serverUsed" : "localhost/127.0.0.1:27017" , "value" : { "_id" : "0:/"} , "errmsg" : "exception: Invalid modifier specified $max" , "code" : 10161 , "ok" : 0.0} at org.apache.jackrabbit.oak.plugins.document.mongo.MongoDocumentStore.findAndModify(MongoDocumentStore.java:530) at org.apache.jackrabbit.oak.plugins.document.mongo.MongoDocumentStore.createOrUpdate(MongoDocumentStore.java:542) at org.apache.jackrabbit.oak.plugins.document.Commit.createOrUpdateNode(Commit.java:450) at org.apache.jackrabbit.oak.plugins.document.Commit.applyToDocumentStore(Commit.java:331) at org.apache.jackrabbit.oak.plugins.document.Commit.prepare(Commit.java:203) at org.apache.jackrabbit.oak.plugins.document.Commit.apply(Commit.java:169) at org.apache.jackrabbit.oak.plugins.document.DocumentNodeStoreBranch.persist(DocumentNodeStoreBranch.java:173) at org.apache.jackrabbit.oak.plugins.document.DocumentNodeStoreBranch.persist(DocumentNodeStoreBranch.java:85) at org.apache.jackrabbit.oak.plugins.document.DocumentNodeStoreBranch.persist(DocumentNodeStoreBranch.java:38) at org.apache.jackrabbit.oak.spi.state.AbstractNodeStoreBranch$Persisted.persistTransientHead(AbstractNodeStoreBranch.java:625) at org.apache.jackrabbit.oak.spi.state.AbstractNodeStoreBranch$Persisted.access$000(AbstractNodeStoreBranch.java:529) at org.apache.jackrabbit.oak.spi.state.AbstractNodeStoreBranch$BranchState.persist(AbstractNodeStoreBranch.java:352) at org.apache.jackrabbit.oak.spi.state.AbstractNodeStoreBranch$InMemory.setRoot(AbstractNodeStoreBranch.java:476) at org.apache.jackrabbit.oak.spi.state.AbstractNodeStoreBranch.setRoot(AbstractNodeStoreBranch.java:220) at org.apache.jackrabbit.oak.plugins.document.DocumentRootBuilder.purge(DocumentRootBuilder.java:200) at org.apache.jackrabbit.oak.plugins.document.DocumentRootBuilder.merge(DocumentRootBuilder.java:156) at org.apache.jackrabbit.oak.plugins.document.DocumentNodeStore.merge(DocumentNodeStore.java:1281) at org.apache.jackrabbit.oak.spi.lifecycle.OakInitializer.initialize(OakInitializer.java:45) at org.apache.jackrabbit.oak.Oak.createContentRepository(Oak.java:512) at org.apache.jackrabbit.oak.jcr.Jcr.createRepository(Jcr.java:189) at org.apache.jackrabbit.oak.jcr.LargeOperationIT.setup(LargeOperationIT.java:175) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:45) at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15) at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:42) at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:27) at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:30) at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:263) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:68) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:47) at org.junit.runners.ParentRunner$3.run(ParentRunner.java:231) at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:60) at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:229) at org.junit.runners.ParentRunner.access$000(ParentRunner.java:50) at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:222) at org.junit.runners.ParentRunner.run(ParentRunner.java:300) at org.junit.runners.Suite.runChild(Suite.java:128) at org.junit.runners.Suite.runChild(Suite.java:24) at org.junit.runners.ParentRunner$3.run(ParentRunner.java:231) at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:60) at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:229) at org.junit.runners.ParentRunner.access$000(ParentRunner.java:50) at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:222) at org.junit.runners.ParentRunner.run(ParentRunner.java:300) at org.junit.runner.JUnitCore.run(JUnitCore.java:157) at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:74) at com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:211) at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:67) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at com.intellij.rt.execution.application.AppMain.main(AppMain.java:134) Caused by: com.mongodb.CommandFailureException: { "serverUsed" : "localhost/127.0.0.1:27017" , "value" : { "_id" : "0:/"} , "errmsg" : "exception: Invalid modifier specified $max" , "code" : 10161 , "ok" : 0.0} at com.mongodb.CommandResult.getException(CommandResult.java:71) at com.mongodb.CommandResult.throwOnError(CommandResult.java:110) at com.mongodb.DBCollection.findAndModify(DBCollection.java:396) at org.apache.jackrabbit.oak.plugins.document.mongo.MongoDocumentStore.findAndModify(MongoDocumentStore.java:503) ... 55 more
Attachments
Issue Links
- relates to
-
OAK-1822 NodeDocument _modified may go back in time
- Closed