replace TODO w/ justifying comment

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@984236 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael McCandless 2010-08-10 22:16:33 +00:00
parent d2165cf08e
commit 1ab1788e98
1 changed files with 4 additions and 1 deletions

View File

@ -1051,7 +1051,10 @@ public class TestIndexWriter extends LuceneTestCase {
*/ */
public void testCommitOnCloseOptimize() throws IOException { public void testCommitOnCloseOptimize() throws IOException {
MockRAMDirectory dir = new MockRAMDirectory(); MockRAMDirectory dir = new MockRAMDirectory();
dir.setPreventDoubleWrite(false); // TODO: should this be disabled here? // Must disable throwing exc on double-write: this
// test uses IW.rollback which easily results in
// writing to same file more than once
dir.setPreventDoubleWrite(false);
IndexWriter writer = new IndexWriter(dir, newIndexWriterConfig(random, TEST_VERSION_CURRENT, new MockAnalyzer()).setMaxBufferedDocs(10)); IndexWriter writer = new IndexWriter(dir, newIndexWriterConfig(random, TEST_VERSION_CURRENT, new MockAnalyzer()).setMaxBufferedDocs(10));
((LogMergePolicy) writer.getConfig().getMergePolicy()).setMergeFactor(10); ((LogMergePolicy) writer.getConfig().getMergePolicy()).setMergeFactor(10);
for(int j=0;j<17;j++) { for(int j=0;j<17;j++) {