mirror of https://github.com/apache/lucene.git
don't rely on ThreadAffinity in tests
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1233288 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
52dc6a5908
commit
fc0b7cfb59
|
@ -695,12 +695,12 @@ public class TestIndexWriterExceptions extends LuceneTestCase {
|
|||
MockDirectoryWrapper dir = newDirectory();
|
||||
|
||||
{
|
||||
final IndexWriter writer = new IndexWriter(
|
||||
dir,
|
||||
newIndexWriterConfig(TEST_VERSION_CURRENT, analyzer).
|
||||
setMaxBufferedDocs(-1).
|
||||
setMergePolicy(newLogMergePolicy(10))
|
||||
);
|
||||
final IndexWriter writer = new IndexWriter(dir, newIndexWriterConfig(
|
||||
TEST_VERSION_CURRENT, analyzer).setMaxBufferedDocs(-1)
|
||||
.setMergePolicy(
|
||||
random.nextBoolean() ? NoMergePolicy.COMPOUND_FILES
|
||||
: NoMergePolicy.NO_COMPOUND_FILES));
|
||||
// don't use a merge policy here they depend on the DWPThreadPool and its max thread states etc.
|
||||
final int finalI = i;
|
||||
|
||||
Thread[] threads = new Thread[NUM_THREAD];
|
||||
|
|
Loading…
Reference in New Issue