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/05/14 10:37:00 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=14543388#comment-14543388 ] 

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

ping [~tmueller] [~mduerig] Can you have a look at the patch. This behaviour causing large memory requirement for bigger migration and also slows done the migration. So having this fixed would be helpful 

> 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
>              Labels: performance
>             Fix For: 1.3.0
>
>         Attachments: OAK-2663.patch
>
>
> {{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)