Details
-
Bug
-
Status: Resolved
-
Blocker
-
Resolution: Workaround
-
None
-
None
-
None
Description
The namespace index node /jcr:system/rep:namespaces/rep:nsdata copied from a seed repository for CompositeNodeStore leads to error in the NamespaceEditor.
This should be ignored as the rep:nsdata should be regenerated.
java.lang.RuntimeException: org.apache.jackrabbit.oak.api.CommitFailedException: OakNamespace0005: Namespace modification not allowed: rep:nsdata at org.apache.jackrabbit.oak.OakInitializer.initialize(OakInitializer.java:50) [org.apache.jackrabbit.oak-core:1.10.0.SNAPSHOT] at org.apache.jackrabbit.oak.Oak.initialContent(Oak.java:672) [org.apache.jackrabbit.oak-core:1.10.0.SNAPSHOT] at org.apache.jackrabbit.oak.Oak.createNewContentRepository(Oak.java:715) [org.apache.jackrabbit.oak-core:1.10.0.SNAPSHOT] at org.apache.jackrabbit.oak.Oak.createContentRepository(Oak.java:660) [org.apache.jackrabbit.oak-core:1.10.0.SNAPSHOT] at org.apache.jackrabbit.oak.jcr.Jcr.createContentRepository(Jcr.java:376) [org.apache.jackrabbit.oak-jcr:1.10.0.SNAPSHOT] ..... org.apache.sling.jcr.base.AbstractSlingRepositoryManager.initializeAndRegisterRepositoryService(AbstractSlingRepositoryManager.java:471) [org.apache.sling.jcr.base:3.0.4] at org.apache.sling.jcr.base.AbstractSlingRepositoryManager.access$300(AbstractSlingRepositoryManager.java:85) [org.apache.sling.jcr.base:3.0.4] at org.apache.sling.jcr.base.AbstractSlingRepositoryManager$4.run(AbstractSlingRepositoryManager.java:455) [org.apache.sling.jcr.base:3.0.4] Caused by: org.apache.jackrabbit.oak.api.CommitFailedException: OakNamespace0005: Namespace modification not allowed: rep:nsdata at org.apache.jackrabbit.oak.plugins.name.NamespaceEditor.modificationNotAllowed(NamespaceEditor.java:122) [org.apache.jackrabbit.oak-core:1.10.0.SNAPSHOT] at org.apache.jackrabbit.oak.plugins.name.NamespaceEditor.childNodeChanged(NamespaceEditor.java:140) [org.apache.jackrabbit.oak-core:1.10.0.SNAPSHOT] at org.apache.jackrabbit.oak.spi.commit.CompositeEditor.childNodeChanged(CompositeEditor.java:121) [org.apache.jackrabbit.oak-store-spi:1.10.0.SNAPSHOT] at org.apache.jackrabbit.oak.spi.commit.EditorDiff.childNodeChanged(EditorDiff.java:142) [org.apache.jackrabbit.oak-store-spi:1.10.0.SNAPSHOT] at org.apache.jackrabbit.oak.plugins.memory.ModifiedNodeState.compareAgainstBaseState(ModifiedNodeState.java:416) [org.apache.jackrabbit.oak-store-spi:1.10.0.SNAPSHOT] at org.apache.jackrabbit.oak.spi.commit.EditorDiff.childNodeChanged(EditorDiff.java:147) [org.apache.jackrabbit.oak-store-spi:1.10.0.SNAPSHOT] at org.apache.jackrabbit.oak.composite.CompositeNodeState$WrappingDiff.childNodeChanged(CompositeNodeState.java:309) [org.apache.jackrabbit.oak-store-composite:1.10.0.SNAPSHOT] at org.apache.jackrabbit.oak.composite.CompositeNodeState$ChildrenDiffFilter.childNodeChanged(CompositeNodeState.java:256) [org.apache.jackrabbit.oak-store-composite:1.10.0.SNAPSHOT] at org.apache.jackrabbit.oak.plugins.memory.ModifiedNodeState.compareAgainstBaseState(ModifiedNodeState.java:416) [org.apache.jackrabbit.oak-store-spi:1.10.0.SNAPSHOT] at org.apache.jackrabbit.oak.composite.CompositeNodeState.compareAgainstBaseState(CompositeNodeState.java:163) [org.apache.jackrabbit.oak-store-composite:1.10.0.SNAPSHOT] at org.apache.jackrabbit.oak.spi.commit.EditorDiff.childNodeChanged(EditorDiff.java:147) [org.apache.jackrabbit.oak-store-spi:1.10.0.SNAPSHOT] at org.apache.jackrabbit.oak.composite.CompositeNodeState$WrappingDiff.childNodeChanged(CompositeNodeState.java:309) [org.apache.jackrabbit.oak-store-composite:1.10.0.SNAPSHOT] at org.apache.jackrabbit.oak.composite.CompositeNodeState$ChildrenDiffFilter.childNodeChanged(CompositeNodeState.java:256) [org.apache.jackrabbit.oak-store-composite:1.10.0.SNAPSHOT] at org.apache.jackrabbit.oak.plugins.memory.ModifiedNodeState.compareAgainstBaseState(ModifiedNodeState.java:416) [org.apache.jackrabbit.oak-store-spi:1.10.0.SNAPSHOT] at org.apache.jackrabbit.oak.plugins.document.ModifiedDocumentNodeState.compareAgainstBaseState(ModifiedDocumentNodeState.java:135) [org.apache.jackrabbit.oak-store-document:1.10.0.SNAPSHOT] at org.apache.jackrabbit.oak.composite.CompositeNodeState.compareAgainstBaseState(CompositeNodeState.java:163) [org.apache.jackrabbit.oak-store-composite:1.10.0.SNAPSHOT] at org.apache.jackrabbit.oak.spi.commit.EditorDiff.process(EditorDiff.java:51) [org.apache.jackrabbit.oak-store-spi:1.10.0.SNAPSHOT] at org.apache.jackrabbit.oak.spi.commit.EditorHook.processCommit(EditorHook.java:54) [org.apache.jackrabbit.oak-store-spi:1.10.0.SNAPSHOT] at org.apache.jackrabbit.oak.spi.commit.CompositeHook.processCommit(CompositeHook.java:60) [org.apache.jackrabbit.oak-store-spi:1.10.0.SNAPSHOT] at org.apache.jackrabbit.oak.composite.CommitHookEnhancer.processCommit(CommitHookEnhancer.java:67) [org.apache.jackrabbit.oak-store-composite:1.10.0.SNAPSHOT] at org.apache.jackrabbit.oak.plugins.document.DocumentNodeStoreBranch$InMemory.merge(DocumentNodeStoreBranch.java:526) [org.apache.jackrabbit.oak-store-document:1.10.0.SNAPSHOT] at org.apache.jackrabbit.oak.plugins.document.DocumentNodeStoreBranch.merge0(DocumentNodeStoreBranch.java:194) [org.apache.jackrabbit.oak-store-document:1.10.0.SNAPSHOT] at org.apache.jackrabbit.oak.plugins.document.DocumentNodeStoreBranch.merge(DocumentNodeStoreBranch.java:119) [org.apache.jackrabbit.oak-store-document:1.10.0.SNAPSHOT] at org.apache.jackrabbit.oak.plugins.document.DocumentRootBuilder.merge(DocumentRootBuilder.java:170) [org.apache.jackrabbit.oak-store-document:1.10.0.SNAPSHOT] at org.apache.jackrabbit.oak.plugins.document.DocumentNodeStore.merge(DocumentNodeStore.java:1830) [org.apache.jackrabbit.oak-store-document:1.10.0.SNAPSHOT] at org.apache.jackrabbit.oak.composite.CompositeNodeStore.merge(CompositeNodeStore.java:155) [org.apache.jackrabbit.oak-store-composite:1.10.0.SNAPSHOT] at org.apache.jackrabbit.oak.OakInitializer.initialize(OakInitializer.java:48) [org.apache.jackrabbit.oak-core:1.10.0.SNAPSHOT] ... 9 common frames omitted
Attachments
Attachments
Issue Links
- relates to
-
OAK-7510 Run repository initializers with hooks
- Closed