Author: chetanm
Date: Thu Sep 15 07:21:08 2016
New Revision: 1760870

URL: http://svn.apache.org/viewvc?rev=1760870&view=rev
Log:
OAK-4412 - Lucene hybrid index

Change benchmark to have difference index for sync and nrt cases

Modified:
    
jackrabbit/oak/trunk/oak-lucene/src/test/java/org/apache/jackrabbit/oak/plugins/index/lucene/hybrid/DocumentQueueTest.java

Modified: 
jackrabbit/oak/trunk/oak-lucene/src/test/java/org/apache/jackrabbit/oak/plugins/index/lucene/hybrid/DocumentQueueTest.java
URL: 
http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-lucene/src/test/java/org/apache/jackrabbit/oak/plugins/index/lucene/hybrid/DocumentQueueTest.java?rev=1760870&r1=1760869&r2=1760870&view=diff
==============================================================================
--- 
jackrabbit/oak/trunk/oak-lucene/src/test/java/org/apache/jackrabbit/oak/plugins/index/lucene/hybrid/DocumentQueueTest.java
 (original)
+++ 
jackrabbit/oak/trunk/oak-lucene/src/test/java/org/apache/jackrabbit/oak/plugins/index/lucene/hybrid/DocumentQueueTest.java
 Thu Sep 15 07:21:08 2016
@@ -278,6 +278,10 @@ public class DocumentQueueTest {
 
         System.out.printf("%n[nrt] Time taken for %d is %s with waits %d%n", 
numDocs, w, waitCount);
 
+        indexed = createAndPopulateAsyncIndex(IndexingMode.SYNC);
+        tracker.update(indexed);
+        queue = new DocumentQueue(1000, tracker, executor);
+
         w = Stopwatch.createStarted();
         for (int i = 0; i < numDocs; i++) {
             ListMultimap<String, LuceneDoc> docs = ArrayListMultimap.create();


Reply via email to