From e827f17be59d6f505cd920756e3ce780d30e2eb2 Mon Sep 17 00:00:00 2001 From: Alan Woodward Date: Thu, 9 Nov 2017 13:31:45 +0000 Subject: [PATCH] Revert "LUCENE-8017: Don't use ParallelReader in tests" This reverts commit ff4874f3d3ff6c307121a6a1f6d87a33d45a48a4. LUCENE-8045 makes this unnecessary --- .../src/test/org/apache/lucene/search/TestLRUQueryCache.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 77086a958c5..094318a42f4 100644 --- a/lucene/core/src/test/org/apache/lucene/search/TestLRUQueryCache.java +++ b/lucene/core/src/test/org/apache/lucene/search/TestLRUQueryCache.java @@ -1532,7 +1532,7 @@ public class TestLRUQueryCache extends LuceneTestCase { w.updateNumericDocValue(new Term("text", "text"), "field", 2l); reader.close(); reader = DirectoryReader.open(w); - searcher = newSearcher(reader, false); // ParallelReader mucks up updated DVs + searcher = newSearcher(reader); searcher.setQueryCachingPolicy(QueryCachingPolicy.ALWAYS_CACHE); searcher.setQueryCache(cache);