remove debug code

This commit is contained in:
Simon Willnauer 2020-06-17 23:33:48 +02:00
parent 9524cc4233
commit efcf75a546
1 changed files with 1 additions and 2 deletions

View File

@ -253,14 +253,13 @@ public abstract class MergePolicy {
mergeProgress.setMergeThread(Thread.currentThread());
}
private Exception originalClosed;
/** Called by {@link IndexWriter} after the merge is done and all readers have been closed.
* @param success true iff the merge finished successfully ie. was committed */
public void mergeFinished(boolean success) throws IOException {
mergeCompleted.complete(success);
// https://issues.apache.org/jira/browse/LUCENE-9408
// if (mergeCompleted.complete(success) == false) {
// throw new IllegalStateException("merge has already finished", originalClosed);
// throw new IllegalStateException("merge has already finished");
// }
}