diff --git a/lucene/core/src/java/org/apache/lucene/index/IndexWriter.java b/lucene/core/src/java/org/apache/lucene/index/IndexWriter.java index 3c40ffe672c7..ef0640eb58bf 100644 --- a/lucene/core/src/java/org/apache/lucene/index/IndexWriter.java +++ b/lucene/core/src/java/org/apache/lucene/index/IndexWriter.java @@ -3351,8 +3351,6 @@ public void addIndexesReaderMerge(MergePolicy.OneMerge merge) throws IOException new IOContext( new MergeInfo(Math.toIntExact(numDocs), -1, false, UNBOUNDED_MAX_MERGE_SEGMENTS)); - // TODO: somehow we should fix this merge so it's - // abortable so that IW.close(false) is able to stop it TrackingDirectoryWrapper trackingDir = new TrackingDirectoryWrapper(mergeDirectory); Codec codec = config.getCodec(); // We set the min version to null for now, it will be set later by SegmentMerger diff --git a/lucene/core/src/test/org/apache/lucene/index/TestAddIndexes.java b/lucene/core/src/test/org/apache/lucene/index/TestAddIndexes.java index fb51f9a2634c..7b33e5a30c09 100644 --- a/lucene/core/src/test/org/apache/lucene/index/TestAddIndexes.java +++ b/lucene/core/src/test/org/apache/lucene/index/TestAddIndexes.java @@ -803,8 +803,7 @@ public MergeSpecification findMerges(List readers) throws IOExcepti assertThrows(RuntimeException.class, () -> TestUtil.addIndexesSlowly(c.destWriter, c.readers)); c.destWriter.commit(); - // verify no docs got added and all interim files from successful merges have been deleted from - // dir + // verify no docs got added and all interim files from successful merges have been deleted try (IndexReader reader = DirectoryReader.open(c.destDir)) { assertEquals(c.INIT_DOCS, reader.numDocs()); }