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 16:24:59 UTC

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

     [ https://issues.apache.org/jira/browse/OAK-2888?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Marcel Reutegger resolved OAK-2888.
-----------------------------------
    Resolution: Fixed

Fixed in 1.0 branch: http://svn.apache.org/r1680301

Write access to the map is now synchronized. With this change the test went on for minutes without any exceptions.

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