[
https://issues.apache.org/jira/browse/OAK-7910?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16695986#comment-16695986
]
Thomas Mueller commented on OAK-7910:
-------------------------------------
Deleting an index still logs some warnings. I think it's not that bad, just not
really nice.
{noformat}
22.11.2018 15:56:36.847 *WARN* [oak-lucene-0]
org.apache.jackrabbit.oak.plugins.index.lucene.IndexCopier Not able to remove
old version of copied index at
/Users/mueller/Desktop/cq65_load15/readWrite/crx-quickstart/repository/index/3672c99459025d975effde6c55c8374a679a8827cb1c84682fe2a78268be1650/0
java.io.FileNotFoundException: File does not exist:
.../repository/index/3672c99459025d975effde6c55c8374a679a8827cb1c84682fe2a78268be1650/0/segments_1
at org.apache.commons.io.FileUtils.forceDelete(FileUtils.java:2396)
[org.apache.commons.io:2.6.0]
at org.apache.commons.io.FileUtils.cleanDirectory(FileUtils.java:1721)
[org.apache.commons.io:2.6.0]
at org.apache.commons.io.FileUtils.deleteDirectory(FileUtils.java:1617)
[org.apache.commons.io:2.6.0]
at
org.apache.jackrabbit.oak.plugins.index.lucene.IndexCopier$DeleteOldDirOnClose.close(IndexCopier.java:399)
[org.apache.jackrabbit.oak-lucene:1.10.0.SNAPSHOT]
at
org.apache.jackrabbit.oak.plugins.index.lucene.directory.CopyOnReadDirectory$2.run(CopyOnReadDirectory.java:292)
[org.apache.jackrabbit.oak-lucene:1.10.0.SNAPSHOT]
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
22.11.2018 15:56:36.847 *WARN* [oak-lucene-4]
org.apache.jackrabbit.oak.plugins.index.lucene.IndexCopier Not able to remove
old version of copied index at
.../repository/index/3672c99459025d975effde6c55c8374a679a8827cb1c84682fe2a78268be1650/0
java.io.IOException: Unable to delete file:
.../repository/index/3672c99459025d975effde6c55c8374a679a8827cb1c84682fe2a78268be1650/0/_0.si
at org.apache.commons.io.FileUtils.forceDelete(FileUtils.java:2400)
[org.apache.commons.io:2.6.0]
at org.apache.commons.io.FileUtils.cleanDirectory(FileUtils.java:1721)
[org.apache.commons.io:2.6.0]
at org.apache.commons.io.FileUtils.deleteDirectory(FileUtils.java:1617)
[org.apache.commons.io:2.6.0]
at
org.apache.jackrabbit.oak.plugins.index.lucene.IndexCopier$DeleteOldDirOnClose.close(IndexCopier.java:399)
[org.apache.jackrabbit.oak-lucene:1.10.0.SNAPSHOT]
at
org.apache.jackrabbit.oak.plugins.index.lucene.directory.CopyOnReadDirectory$2.run(CopyOnReadDirectory.java:292)
[org.apache.jackrabbit.oak-lucene:1.10.0.SNAPSHOT]
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
{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)