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 2015/03/21 13:35:38 UTC

[jira] [Commented] (OAK-2663) Unique property index can trigger OOM during upgrade of large repository

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

Chetan Mehrotra commented on OAK-2663:
--------------------------------------

In one the upgrade (to segment) disabling the last check for uniqueness constraint saved 8 mins (time in index editor reduced from 40 min to 32 min for ~13 M nodes). I believe the saving would be higher when using Mongo

> Unique property index can trigger OOM during upgrade of large repository
> ------------------------------------------------------------------------
>
>                 Key: OAK-2663
>                 URL: https://issues.apache.org/jira/browse/OAK-2663
>             Project: Jackrabbit Oak
>          Issue Type: Bug
>          Components: upgrade
>            Reporter: Chetan Mehrotra
>            Assignee: Chetan Mehrotra
>             Fix For: 1.1.8
>
>
> {{PropertyIndexEditor}} when configured for unique index maintains an in memory state of indexed property in {{keysToCheckForUniqueness}}. This set would accumulate all the unique values being indexed.
> In case of upgrade where the complete upgrade is performed in single commit this state can become very large. Further later while exiting the editor validates that all such values are actually unique by iterating over all such values.
> We should look into other possible ways to enforce uniqueness constraint



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)