jackrabbit-oak-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Thomas Mueller (Jira)" <j...@apache.org>
Subject [jira] [Commented] (OAK-9165) Lucene: unique sync property index don't work properly
Date Tue, 11 Aug 2020 15:35:00 GMT

    [ https://issues.apache.org/jira/browse/OAK-9165?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17175646#comment-17175646
] 

Thomas Mueller commented on OAK-9165:
-------------------------------------

http://svn.apache.org/r1880776 (trunk)

> Lucene: unique sync property index don't work properly
> ------------------------------------------------------
>
>                 Key: OAK-9165
>                 URL: https://issues.apache.org/jira/browse/OAK-9165
>             Project: Jackrabbit Oak
>          Issue Type: Improvement
>          Components: indexing, lucene, property-index
>            Reporter: Thomas Mueller
>            Assignee: Thomas Mueller
>            Priority: Major
>
> Looks like Lucene already supports unique property indexes, by setting "sync" = true
and "unique" = true on the indexed property.
> But there is a bug: you can create a unique property index if there is a duplicate entry
in the content. Reindexing succeeds. But then removing the duplicate entry in the content
fails with:
> I got the following exception 
> {noformat}
> java.lang.NullPointerException: null
> 	at org.apache.jackrabbit.oak.plugins.index.property.strategy.UniqueEntryStoreStrategy.remove(UniqueEntryStoreStrategy.java:92)
[org.apache.jackrabbit.oak-core:1.14.0.SNAPSHOT]
> 	at org.apache.jackrabbit.oak.plugins.index.property.strategy.UniqueEntryStoreStrategy.update(UniqueEntryStoreStrategy.java:78)
[org.apache.jackrabbit.oak-core:1.14.0.SNAPSHOT]
> 	at org.apache.jackrabbit.oak.plugins.index.lucene.property.PropertyIndexUpdateCallback.propertyUpdated(PropertyIndexUpdateCallback.java:98)
[org.apache.jackrabbit.oak-lucene:1.14.0.SNAPSHOT]
> 	at org.apache.jackrabbit.oak.plugins.index.search.CompositePropertyUpdateCallback.propertyUpdated(CompositePropertyUpdateCallback.java:46)
[org.apache.jackrabbit.oak-lucene:1.14.0.SNAPSHOT]
> 	at org.apache.jackrabbit.oak.plugins.index.lucene.LuceneIndexEditor.propertyUpdated(LuceneIndexEditor.java:378)
[org.apache.jackrabbit.oak-lucene:1.14.0.SNAPSHOT]
> {noformat}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Mime
View raw message