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:30:02 UTC

[jira] [Resolved] (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:all-tabpanel ]

Chetan Mehrotra resolved OAK-6857.
----------------------------------
       Resolution: Fixed
    Fix Version/s: 1.7.11

> 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, 1.7.11
>
>
> 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)