From 01152b825f7259977300425d5bbba42c553edaf9 Mon Sep 17 00:00:00 2001 From: Adrien Grand Date: Mon, 30 Mar 2015 09:42:11 +0000 Subject: [PATCH] Fix TestNRTThreads by explicitely copying the term before running the query. git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1670026 13f79535-47bb-0310-9956-ffa450edef68 --- .../lucene/index/ThreadedIndexingAndSearchingTestCase.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lucene/test-framework/src/java/org/apache/lucene/index/ThreadedIndexingAndSearchingTestCase.java b/lucene/test-framework/src/java/org/apache/lucene/index/ThreadedIndexingAndSearchingTestCase.java index e4d625f03b9..2366d88fd77 100644 --- a/lucene/test-framework/src/java/org/apache/lucene/index/ThreadedIndexingAndSearchingTestCase.java +++ b/lucene/test-framework/src/java/org/apache/lucene/index/ThreadedIndexingAndSearchingTestCase.java @@ -380,7 +380,7 @@ public abstract class ThreadedIndexingAndSearchingTestCase extends LuceneTestCas //if (VERBOSE) { //System.out.println(Thread.currentThread().getName() + " now search body:" + term.utf8ToString()); //} - totHits.addAndGet(runQuery(s, new TermQuery(new Term("body", term)))); + totHits.addAndGet(runQuery(s, new TermQuery(new Term("body", BytesRef.deepCopyOf(term))))); } } //if (VERBOSE) {