Marcel Reutegger created OAK-1167:
-------------------------------------

             Summary: 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


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)

Reply via email to