Author: chetanm
Date: Fri Oct 14 05:57:47 2016
New Revision: 1764814

URL: http://svn.apache.org/viewvc?rev=1764814&view=rev
Log:
OAK-4937 - JournalGC failing with RDB DocumentStore

Adding ignored test

Added:
    
jackrabbit/oak/trunk/oak-core/src/test/java/org/apache/jackrabbit/oak/plugins/document/JournalGCIT.java
   (with props)

Added: 
jackrabbit/oak/trunk/oak-core/src/test/java/org/apache/jackrabbit/oak/plugins/document/JournalGCIT.java
URL: 
http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-core/src/test/java/org/apache/jackrabbit/oak/plugins/document/JournalGCIT.java?rev=1764814&view=auto
==============================================================================
--- 
jackrabbit/oak/trunk/oak-core/src/test/java/org/apache/jackrabbit/oak/plugins/document/JournalGCIT.java
 (added)
+++ 
jackrabbit/oak/trunk/oak-core/src/test/java/org/apache/jackrabbit/oak/plugins/document/JournalGCIT.java
 Fri Oct 14 05:57:47 2016
@@ -0,0 +1,46 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package org.apache.jackrabbit.oak.plugins.document;
+
+import java.util.concurrent.TimeUnit;
+
+import org.junit.Ignore;
+import org.junit.Test;
+
+import static org.junit.Assert.assertEquals;
+
+public class JournalGCIT  extends AbstractDocumentStoreTest {
+
+    public JournalGCIT(DocumentStoreFixture dsf) {
+        super(dsf);
+    }
+
+    @Ignore("OAK-4937")
+    @Test
+    public void journalGCSimpleInvocation() throws Exception{
+        DocumentNodeStore ns1 = new DocumentMK.Builder()
+                .setDocumentStore(ds).setClusterId(1)
+                .setAsyncDelay(0)
+                .getNodeStore();
+
+        JournalGarbageCollector jgc = ns1.getJournalGarbageCollector();
+        assertEquals(0, jgc.gc(1, 10, TimeUnit.HOURS));
+    }
+}

Propchange: 
jackrabbit/oak/trunk/oak-core/src/test/java/org/apache/jackrabbit/oak/plugins/document/JournalGCIT.java
------------------------------------------------------------------------------
    svn:eol-style = native


Reply via email to