jackrabbit-oak-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marcel Reutegger <mreut...@adobe.com>
Subject strange restart behavior
Date Wed, 16 Jan 2013 14:44:35 GMT
Hi,

I see a strange behavior on restart of the repository.

the thread dump shows something like this:

at org.apache.jackrabbit.oak.kernel.KernelNodeState.getChildNode(KernelNodeState.java:169)
at org.apache.jackrabbit.oak.spi.state.AbstractNodeState.hasChildNode(AbstractNodeState.java:63)
at org.apache.jackrabbit.oak.plugins.memory.MemoryNodeBuilder.hasBaseState(MemoryNodeBuilder.java:173)
at org.apache.jackrabbit.oak.plugins.memory.MemoryNodeBuilder.child(MemoryNodeBuilder.java:465)
at org.apache.jackrabbit.oak.plugins.index.p2.strategy.ContentMirrorStoreStrategy.insert(ContentMirrorStoreStrategy.java:123)
at org.apache.jackrabbit.oak.plugins.index.p2.Property2IndexUpdate.apply(Property2IndexUpdate.java:146)
at org.apache.jackrabbit.oak.plugins.index.p2.Property2IndexDiff.apply(Property2IndexDiff.java:232)
at org.apache.jackrabbit.oak.plugins.index.IndexHookManager.apply(IndexHookManager.java:71)
at org.apache.jackrabbit.oak.plugins.index.IndexHookManager.processCommit(IndexHookManager.java:61)
at org.apache.jackrabbit.oak.spi.lifecycle.OakInitializer.initialize(OakInitializer.java:44)
at org.apache.jackrabbit.oak.Oak.createContentRepository(Oak.java:225)

I'm probably misunderstanding something here, but is OakInitializer.initialize() really correct?

It does:

            branch.setRoot(IndexHookManager.of(indexHook).processCommit(
                    MemoryNodeState.EMPTY_NODE, root.getNodeState()));

doesn't that indicate to the index hook manager that the complete repository
content was added, because EMPTY_NODE is used for before state?

regards
 marcel 

Mime
View raw message