Skip to content

Commit

Permalink
remove non-essential comments
Browse files Browse the repository at this point in the history
  • Loading branch information
vigyasharma committed Apr 21, 2022
1 parent 0ca1fba commit aa19ab9
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
2 changes: 0 additions & 2 deletions lucene/core/src/java/org/apache/lucene/index/IndexWriter.java
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -803,8 +803,7 @@ public MergeSpecification findMerges(List<CodecReader> 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());
}
Expand Down

0 comments on commit aa19ab9

Please sign in to comment.