You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-issues@jackrabbit.apache.org by "Chetan Mehrotra (JIRA)" <ji...@apache.org> on 2017/10/26 11:28:00 UTC

[jira] [Commented] (OAK-6857) Lucene unique index should check path validity for uniqueness constraint

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

Chetan Mehrotra commented on OAK-6857:
--------------------------------------

With 1813386 now UniquenessConstraintValidator would check if any path returned by lucene index is valid wrt current head state or not

> Lucene unique index should check path validity for uniqueness constraint
> ------------------------------------------------------------------------
>
>                 Key: OAK-6857
>                 URL: https://issues.apache.org/jira/browse/OAK-6857
>             Project: Jackrabbit Oak
>          Issue Type: Technical task
>          Components: lucene
>            Reporter: Chetan Mehrotra
>            Assignee: Chetan Mehrotra
>             Fix For: 1.8
>
>
> The {{UniquenessConstraintValidator}} currently checks for any new index entry if any matching entry is found in primary (property) and secondary (lucene) index. 
> This can lead to false positive where the entry in index is obsolete and due to async index lagging behind is yet not pruned. For e.g. if 
> # Time T1 - path /a/@uuid=1 existed , present in lucene index
> # Time T2 - path /a removed (async index yet not catched up)
> # Time T3 - path /b/@uuid=1 being created. 
> In this case save should pass. However as async index has yet not catched up it reports a constraint validation exception. As a fix {{UniquenessConstraintValidator}}  should check if reported paths are valid wrt current revision



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)