lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a.@apache.org
Subject [29/35] lucene-solr:jira/solr-11779: TestLRUQueryCache#testBulkScorerLocking needs large IW buffers.
Date Mon, 28 May 2018 15:40:12 GMT
TestLRUQueryCache#testBulkScorerLocking needs large IW buffers.


Project: http://git-wip-us.apache.org/repos/asf/lucene-solr/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucene-solr/commit/b1613e4d
Tree: http://git-wip-us.apache.org/repos/asf/lucene-solr/tree/b1613e4d
Diff: http://git-wip-us.apache.org/repos/asf/lucene-solr/diff/b1613e4d

Branch: refs/heads/jira/solr-11779
Commit: b1613e4da639f860988b58ee768eeed57149c9b7
Parents: 0941cae
Author: Adrien Grand <jpountz@gmail.com>
Authored: Mon May 28 15:22:21 2018 +0200
Committer: Adrien Grand <jpountz@gmail.com>
Committed: Mon May 28 15:22:21 2018 +0200

----------------------------------------------------------------------
 .../src/test/org/apache/lucene/search/TestLRUQueryCache.java    | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/b1613e4d/lucene/core/src/test/org/apache/lucene/search/TestLRUQueryCache.java
----------------------------------------------------------------------
diff --git a/lucene/core/src/test/org/apache/lucene/search/TestLRUQueryCache.java b/lucene/core/src/test/org/apache/lucene/search/TestLRUQueryCache.java
index b3e1ed3..8443d86 100644
--- a/lucene/core/src/test/org/apache/lucene/search/TestLRUQueryCache.java
+++ b/lucene/core/src/test/org/apache/lucene/search/TestLRUQueryCache.java
@@ -1605,7 +1605,10 @@ public class TestLRUQueryCache extends LuceneTestCase {
   public void testBulkScorerLocking() throws Exception {
 
     Directory dir = newDirectory();
-    IndexWriterConfig iwc = newIndexWriterConfig().setMergePolicy(NoMergePolicy.INSTANCE);
+    IndexWriterConfig iwc = newIndexWriterConfig()
+        .setMergePolicy(NoMergePolicy.INSTANCE)
+        // the test framework sometimes sets crazy low values, prevent this since we are
indexing many docs
+        .setMaxBufferedDocs(-1);
     IndexWriter w = new IndexWriter(dir, iwc);
 
     final int numDocs = atLeast(10);


Mime
View raw message