s1monw commented on a change in pull request #1552: URL: https://github.com/apache/lucene-solr/pull/1552#discussion_r442422185
########## File path: lucene/core/src/java/org/apache/lucene/index/IndexWriter.java ########## @@ -3226,15 +3235,53 @@ private long prepareCommitInternal() throws IOException { // sneak into the commit point: toCommit = segmentInfos.clone(); + if (anyChanges && maxCommitMergeWaitSeconds > 0) { + SegmentInfos committingSegmentInfos = toCommit; + onCommitMerges = updatePendingMerges(new OneMergeWrappingMergePolicy(config.getMergePolicy(), toWrap -> + new MergePolicy.OneMerge(toWrap.segments) { + @Override + public void mergeFinished(boolean committed) throws IOException { Review comment: I like to move stuf once necessary I think we need to adjust it there anyway so we can move it in a followup. ok? ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org For additional commands, e-mail: issues-h...@lucene.apache.org