jackrabbit-oak-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From resc...@apache.org
Subject svn commit: r1325234 - /jackrabbit/oak/trunk/oak-mk/src/test/java/org/apache/jackrabbit/mk/blobs/DbBlobStoreTest.java
Date Thu, 12 Apr 2012 13:02:10 GMT
Author: reschke
Date: Thu Apr 12 13:02:09 2012
New Revision: 1325234

URL: http://svn.apache.org/viewvc?rev=1325234&view=rev
Log:
OAK-60: add a short sleep before checking the GC (needs review)

Modified:
    jackrabbit/oak/trunk/oak-mk/src/test/java/org/apache/jackrabbit/mk/blobs/DbBlobStoreTest.java

Modified: jackrabbit/oak/trunk/oak-mk/src/test/java/org/apache/jackrabbit/mk/blobs/DbBlobStoreTest.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-mk/src/test/java/org/apache/jackrabbit/mk/blobs/DbBlobStoreTest.java?rev=1325234&r1=1325233&r2=1325234&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-mk/src/test/java/org/apache/jackrabbit/mk/blobs/DbBlobStoreTest.java
(original)
+++ jackrabbit/oak/trunk/oak-mk/src/test/java/org/apache/jackrabbit/mk/blobs/DbBlobStoreTest.java
Thu Apr 12 13:02:09 2012
@@ -211,6 +211,14 @@ public class DbBlobStoreTest extends Tes
 
         store.clearInUse();
         store.clearCache();
+
+        // https://issues.apache.org/jira/browse/OAK-60
+        try {
+            Thread.sleep(1);
+        } catch (InterruptedException e) {
+
+        }
+
         store.startMark();
         count = store.sweep();
         assertTrue("count: " + count, count > 0);
@@ -225,13 +233,6 @@ public class DbBlobStoreTest extends Tes
             }
         }
         assertTrue("failedCount: " + failedCount, failedCount > 0);
-
-
-//        try {
-//            Thread.sleep(10);
-//        } catch (InterruptedException e) {
-//
-//        }
     }
 
     private void doTest(int maxLength, int count) throws Exception {



Mime
View raw message