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 "Marcel Reutegger (JIRA)" <ji...@apache.org> on 2015/05/19 11:18:59 UTC

[jira] [Commented] (OAK-2888) ArrayIndexOutOfBoundsException in UnsavedModifications.put()

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

Marcel Reutegger commented on OAK-2888:
---------------------------------------

This issue only affects the 1.0 branch versions 1.0.7 or newer. The 1.2 branch (and trunk) does not make use of MapDB anymore.

The dependency was introduced with OAK-1768 and then again removed with OAK-2131.

As a workaround the use of MapDB can be disabled with {{-Doak.useMemoryMapFactory=true}}.

> ArrayIndexOutOfBoundsException in UnsavedModifications.put()
> ------------------------------------------------------------
>
>                 Key: OAK-2888
>                 URL: https://issues.apache.org/jira/browse/OAK-2888
>             Project: Jackrabbit Oak
>          Issue Type: Bug
>          Components: core, mongomk
>    Affects Versions: 1.0.7
>            Reporter: Marcel Reutegger
>            Assignee: Marcel Reutegger
>            Priority: Critical
>             Fix For: 1.0.15
>
>
> In rare cases a commit may fail to update the pending changes on {{_lastRev}}    of documents. The stack trace is:
> {noformat}
> Caused by: java.lang.ArrayIndexOutOfBoundsException: 0
>         at org.mapdb.BTreeMap.replace(BTreeMap.java:1174)
>         at org.apache.jackrabbit.oak.plugins.document.UnsavedModifications.put(UnsavedModifications.java:90)
>         at org.apache.jackrabbit.oak.plugins.document.DocumentNodeStore$10.track(DocumentNodeStore.java:1990)
>         at org.apache.jackrabbit.oak.plugins.document.DocumentNodeStore.applyChanges(DocumentNodeStore.java:1056)
>         at org.apache.jackrabbit.oak.plugins.document.Commit.applyToCache(Commit.java:598)
>         at org.apache.jackrabbit.oak.plugins.document.CommitQueue.afterTrunkCommit(CommitQueue.java:127)
>         at org.apache.jackrabbit.oak.plugins.document.CommitQueue.done(CommitQueue.java:83)
> {noformat}



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