[
https://issues.apache.org/jira/browse/OAK-7910?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16694781#comment-16694781
]
Thomas Mueller commented on OAK-7910:
-------------------------------------
Thanks [~tomek.rekawek]! I will try that.
The log file when trying to create a new index, which already exists in the
read-only repository, shows the problems with TypeEditor and NameValidator:
{noformat}
..06.806 ..[qtp1467916665-1534] ..TypeEditor UnsupportedOperationException
checkNodeTypeConstraints: :oak:mount-libs-index-data
..06.807 ..[qtp1467916665-1534] ..NameValidator UnsupportedOperationException
valid name: :childOrder
..06.807 ..[qtp1467916665-1534] ..NameValidator UnsupportedOperationException
valid name: :childOrder
..06.807 ..[qtp1467916665-1534] ..NameValidator UnsupportedOperationException
valid name: :childOrder
..06.807 ..[qtp1467916665-1534] ..NameValidator UnsupportedOperationException
valid name: :childOrder
..06.807 ..[qtp1467916665-1534] ..NameValidator UnsupportedOperationException
valid name: :oak:mount-libs-index-data
..07.206 ..[oak-lucene-26] ..OakDirectory UnsupportedOperationException: trying
to remove _13_Lucene41_0.doc
..07.206 ..[oak-lucene-26] ..OakDirectory UnsupportedOperationException: trying
to remove _13_Lucene41_0.pay
..07.206 ..[oak-lucene-26] ..OakDirectory UnsupportedOperationException: trying
to remove _13_Lucene41_0.tim
..07.206 ..[oak-lucene-26] ..OakDirectory UnsupportedOperationException: trying
to remove _13_Lucene41_0.tip
..07.206 ..[oak-lucene-26] ..OakDirectory UnsupportedOperationException: trying
to remove _13_Lucene41_0.pos
..07.206 ..[oak-lucene-26] ..OakDirectory UnsupportedOperationException: trying
to remove _13.nvm
..07.206 ..[oak-lucene-26] ..OakDirectory UnsupportedOperationException: trying
to remove _13.fnm
..07.206 ..[oak-lucene-26] ..OakDirectory UnsupportedOperationException: trying
to remove _13.fdt
..07.207 ..[oak-lucene-26] ..OakDirectory UnsupportedOperationException: trying
to remove _13.nvd
..07.207 ..[oak-lucene-26] ..OakDirectory UnsupportedOperationException: trying
to remove _13.fdx
..07.220 ..[async-index-update-fulltext-async] ..OakDirectory
UnsupportedOperationException trying to close :data
..07.220 ..[async-index-update-fulltext-async] ..OakDirectory
UnsupportedOperationException: trying to set property _13.si
..07.220 ..[async-index-update-fulltext-async] ..OakDirectory
UnsupportedOperationException: trying to set property segments_16
..07.220 ..[async-index-update-fulltext-async] ..OakDirectory
UnsupportedOperationException: trying to set property _13.cfe
..07.220 ..[async-index-update-fulltext-async] ..OakDirectory
UnsupportedOperationException: trying to set property _13.cfs
..07.220 ..[async-index-update-fulltext-async] ..OakDirectory
UnsupportedOperationException: trying to set property segments.gen
..07.220 ..[async-index-update-fulltext-async] ..OakDirectory
UnsupportedOperationException: trying to remove segments_15
..07.221 ..[async-index-update-fulltext-async] ..OakDirectory
UnsupportedOperationException trying to close :data
..07.228 ..[oak-lucene-27] ..OakDirectory UnsupportedOperationException: trying
to remove _6_Lucene41_0.tip
..07.228 ..[oak-lucene-27] ..OakDirectory UnsupportedOperationException: trying
to remove _6.fdt
..07.228 ..[oak-lucene-27] ..OakDirectory UnsupportedOperationException: trying
to remove _6_Lucene41_0.doc
..07.228 ..[oak-lucene-27] ..OakDirectory UnsupportedOperationException: trying
to remove _6_Lucene41_0.tim
..07.228 ..[oak-lucene-27] ..OakDirectory UnsupportedOperationException: trying
to remove _6.nvm
..07.228 ..[oak-lucene-27] ..OakDirectory UnsupportedOperationException: trying
to remove _6.fnm
..07.228 ..[oak-lucene-27] ..OakDirectory UnsupportedOperationException: trying
to remove _6.fdx
..07.228 ..[oak-lucene-27] ..OakDirectory UnsupportedOperationException: trying
to remove _6_Lucene41_0.pos
..07.228 ..[oak-lucene-27] ..OakDirectory UnsupportedOperationException: trying
to remove _6.nvd
..07.233 ..[async-index-update-async] ..OakDirectory
UnsupportedOperationException trying to close :data
..07.233 ..[async-index-update-async] ..OakDirectory
UnsupportedOperationException: trying to set property _6.cfe
..07.233 ..[async-index-update-async] ..OakDirectory
UnsupportedOperationException: trying to set property _6.cfs
..07.233 ..[async-index-update-async] ..OakDirectory
UnsupportedOperationException: trying to set property segments_a
..07.234 ..[async-index-update-async] ..OakDirectory
UnsupportedOperationException: trying to set property segments.gen
..07.234 ..[async-index-update-async] ..OakDirectory
UnsupportedOperationException: trying to set property _6.si
..07.234 ..[async-index-update-async] ..OakDirectory
UnsupportedOperationException: trying to remove segments_9
..07.234 ..[async-index-update-async] ..OakDirectory
UnsupportedOperationException trying to close :data
{noformat}
> Composite node store: Creating a new Lucene index; reindex
> ----------------------------------------------------------
>
> Key: OAK-7910
> URL: https://issues.apache.org/jira/browse/OAK-7910
> Project: Jackrabbit Oak
> Issue Type: Improvement
> Components: composite, core
> Reporter: Thomas Mueller
> Assignee: Thomas Mueller
> Priority: Major
>
> With the composite node store, creating a Lucene index in the read-write
> repository fails due to the exception below. I think Oak shouldn't try to do
> node type validation for hidden nodes.
> {noformat}
> Caused by: org.apache.jackrabbit.oak.api.CommitFailedException:
> OakConstraint0001: /oak:index/test/:oak:mount-libs-index-data[[]]: The
> primary type null does not exist
> at
> org.apache.jackrabbit.oak.plugins.nodetype.TypeEditor$1.onConstraintViolation(TypeEditor.java:109)
> [org.apache.jackrabbit.oak-core:1.9.10.R1845889]
> at
> org.apache.jackrabbit.oak.plugins.nodetype.TypeEditor.constraintViolation(TypeEditor.java:234)
> [org.apache.jackrabbit.oak-core:1.9.10.R1845889]
> at
> org.apache.jackrabbit.oak.plugins.nodetype.TypeEditor.createEffectiveType(TypeEditor.java:337)
> [org.apache.jackrabbit.oak-core:1.9.10.R1845889]
> at
> org.apache.jackrabbit.oak.plugins.nodetype.TypeEditor.<init>(TypeEditor.java:203)
> [org.apache.jackrabbit.oak-core:1.9.10.R1845889]
> at
> org.apache.jackrabbit.oak.plugins.nodetype.TypeEditor.checkNodeTypeConstraints(TypeEditor.java:482)
> [org.apache.jackrabbit.oak-core:1.9.10.R1845889]
> at
> org.apache.jackrabbit.oak.plugins.nodetype.TypeEditor.enter(TypeEditor.java:276)
> [org.apache.jackrabbit.oak-core:1.9.10.R1845889]
> at
> org.apache.jackrabbit.oak.spi.commit.VisibleEditor.enter(VisibleEditor.java:53)
> [org.apache.jackrabbit.oak-store-spi:1.9.10.R1845889]
> at
> org.apache.jackrabbit.oak.spi.commit.CompositeEditor.enter(CompositeEditor.java:65)
> [org.apache.jackrabbit.oak-store-spi:1.9.10.R1845889]
> at
> org.apache.jackrabbit.oak.spi.commit.EditorDiff.childNodeAdded(EditorDiff.java:121)
> [org.apache.jackrabbit.oak-store-spi:1.9.10.R1845889]
> at
> org.apache.jackrabbit.oak.composite.CompositeNodeState$WrappingDiff.childNodeAdded(CompositeNodeState.java:304)
> [org.apache.jackrabbit.oak-store-composite:1.9.10.R1845889]
> at
> org.apache.jackrabbit.oak.composite.CompositeNodeState$ChildrenDiffFilter.childNodeAdded(CompositeNodeState.java:247)
> [org.apache.jackrabbit.oak-store-composite:1.9.10.R1845889]
> Caused by: org.apache.jackrabbit.oak.api.CommitFailedException:
> OakConstraint0001: /oak:index/test/:oak:mount-libs-index-data[[]]: The
> primary type null does not exist
> at
> org.apache.jackrabbit.oak.plugins.nodetype.TypeEditor$1.onConstraintViolation(TypeEditor.java:109)
> [org.apache.jackrabbit.oak-core:1.9.10.R1845889]
> at
> org.apache.jackrabbit.oak.plugins.nodetype.TypeEditor.constraintViolation(TypeEditor.java:234)
> [org.apache.jackrabbit.oak-core:1.9.10.R1845889]
> at
> org.apache.jackrabbit.oak.plugins.nodetype.TypeEditor.createEffectiveType(TypeEditor.java:337)
> [org.apache.jackrabbit.oak-core:1.9.10.R1845889]
> at
> org.apache.jackrabbit.oak.plugins.nodetype.TypeEditor.<init>(TypeEditor.java:203)
> [org.apache.jackrabbit.oak-core:1.9.10.R1845889]
> at
> org.apache.jackrabbit.oak.plugins.nodetype.TypeEditor.checkNodeTypeConstraints(TypeEditor.java:482)
> [org.apache.jackrabbit.oak-core:1.9.10.R1845889]
> at
> org.apache.jackrabbit.oak.plugins.nodetype.TypeEditor.enter(TypeEditor.java:276)
> [org.apache.jackrabbit.oak-core:1.9.10.R1845889]
> at
> org.apache.jackrabbit.oak.spi.commit.VisibleEditor.enter(VisibleEditor.java:53)
> [org.apache.jackrabbit.oak-store-spi:1.9.10.R1845889]
> at
> org.apache.jackrabbit.oak.spi.commit.CompositeEditor.enter(CompositeEditor.java:65)
> [org.apache.jackrabbit.oak-store-spi:1.9.10.R1845889]
> at
> org.apache.jackrabbit.oak.spi.commit.EditorDiff.childNodeAdded(EditorDiff.java:121)
> [org.apache.jackrabbit.oak-store-spi:1.9.10.R1845889]
> at
> org.apache.jackrabbit.oak.composite.CompositeNodeState$WrappingDiff.childNodeAdded(CompositeNodeState.java:304)
> [org.apache.jackrabbit.oak-store-composite:1.9.10.R1845889]
> at
> org.apache.jackrabbit.oak.composite.CompositeNodeState$ChildrenDiffFilter.childNodeAdded(CompositeNodeState.java:247)
> [org.apache.jackrabbit.oak-store-composite:1.9.10.R1845889]
> at
> org.apache.jackrabbit.oak.segment.MapRecord$4.childNodeAdded(MapRecord.java:443)
> [org.apache.jackrabbit.oak-segment-tar:1.9.10.R1845889]
> at
> org.apache.jackrabbit.oak.segment.MapRecord.compare(MapRecord.java:505)
> [org.apache.jackrabbit.oak-segment-tar:1.9.10.R1845889]
> at
> org.apache.jackrabbit.oak.segment.MapRecord.compare(MapRecord.java:440)
> [org.apache.jackrabbit.oak-segment-tar:1.9.10.R1845889]
> at
> org.apache.jackrabbit.oak.segment.SegmentNodeState.compareAgainstBaseState(SegmentNodeState.java:651)
> [org.apache.jackrabbit.oak-segment-tar:1.9.10.R1845889]
> {noformat}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)