jackrabbit-oak-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mreut...@apache.org
Subject svn commit: r1540753 - /jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/mongomk/Revision.java
Date Mon, 11 Nov 2013 15:35:19 GMT
Author: mreutegg
Date: Mon Nov 11 15:35:19 2013
New Revision: 1540753

URL: http://svn.apache.org/r1540753
Log:
OAK-1167: Background read may cause IllegalArgumentException
- quick fix

Modified:
    jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/mongomk/Revision.java

Modified: jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/mongomk/Revision.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/mongomk/Revision.java?rev=1540753&r1=1540752&r2=1540753&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/mongomk/Revision.java
(original)
+++ jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/mongomk/Revision.java
Mon Nov 11 15:35:19 2013
@@ -380,9 +380,13 @@ public class Revision {
                         return;
                     }
                     if (last.revision.compareRevisionTime(r) > 0) {
+                        /*
                         throw new IllegalArgumentException(
                                 "Can not add an earlier revision: " + last.revision + " >
" + r + 
                                 "; current cluster node is " + currentClusterNodeId);
+                        */
+                        // quick fix for OAK-1167
+                        return;
                     }
                     newList = new ArrayList<RevisionRange>(list);
                 }



Mime
View raw message