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 2013/11/14 15:33:22 UTC

[jira] [Resolved] (OAK-1167) Background read may cause IllegalArgumentException

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

Marcel Reutegger resolved OAK-1167.
-----------------------------------

       Resolution: Fixed
    Fix Version/s:     (was: 0.12)
                   0.11

The fix for OAK-1170 (http://svn.apache.org/r1541915) also reverted the quick fix, which is not necessary anymore. Now only the background read operation adds external revisions to the RevisionComparator.

> Background read may cause IllegalArgumentException
> --------------------------------------------------
>
>                 Key: OAK-1167
>                 URL: https://issues.apache.org/jira/browse/OAK-1167
>             Project: Jackrabbit Oak
>          Issue Type: Bug
>          Components: core, mongomk
>    Affects Versions: 0.10
>            Reporter: Marcel Reutegger
>            Assignee: Marcel Reutegger
>             Fix For: 0.11
>
>
> When running Oak with MongoMK and multiple cluster nodes the background read may sometimes cause an IllegalArgumentException like this:
> {noformat}
> 02:14:40.451 [MongoNodeStore background thread] WARN  o.a.j.o.p.mongomk.MongoNodeStore - Background operation failed: java.lang.IllegalArgumentException: Can not add an earlier revision: r14246a7ee62-0-3 > r14246a7ea36-0-3; current cluster node is 2
> java.lang.IllegalArgumentException: Can not add an earlier revision: r14246a7ee62-0-3 > r14246a7ea36-0-3; current cluster node is 2
> 	at org.apache.jackrabbit.oak.plugins.mongomk.Revision$RevisionComparator.add(Revision.java:383) ~[oak-run-0.11-SNAPSHOT.jar:0.11-SNAPSHOT]
> 	at org.apache.jackrabbit.oak.plugins.mongomk.MongoNodeStore.backgroundRead(MongoNodeStore.java:1044) ~[oak-run-0.11-SNAPSHOT.jar:0.11-SNAPSHOT]
> 	at org.apache.jackrabbit.oak.plugins.mongomk.MongoNodeStore.runBackgroundOperations(MongoNodeStore.java:1000) ~[oak-run-0.11-SNAPSHOT.jar:0.11-SNAPSHOT]
> 	at org.apache.jackrabbit.oak.plugins.mongomk.MongoNodeStore$BackgroundOperation.run(MongoNodeStore.java:1221) [oak-run-0.11-SNAPSHOT.jar:0.11-SNAPSHOT]
> 	at java.lang.Thread.run(Thread.java:679) [na:1.6.0_24]
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.1#6144)