mikemccand commented on a change in pull request #1155: LUCENE-8962: Add
ability to selectively merge on commit
URL: https://github.com/apache/lucene-solr/pull/1155#discussion_r374697544
##########
File path: lucene/core/src/java/org/apache/lucene/index/MergePolicy.java
##########
@@ -526,6 +526,19 @@ public abstract MergeSpecification findForcedMerges(
public abstract MergeSpecification findForcedDeletesMerges(
SegmentInfos segmentInfos, MergeContext mergeContext) throws IOException;
+ /**
+ * Identifies merges that we want to execute (synchronously) on commit. By
default, do not synchronously merge on commit.
Review comment:
Good thinking! +1 for `findFullFlushMerges`, to make it clear it's a FULL
flush (`commit` or `refresh`) and not an ordinary flush e.g. when the in-memory
segments are taking too much memory and some are flushed.
And then I guess the method could look at `MergeTrigger` to differentiate
whether it's a `commit` or a `refresh`?
----------------------------------------------------------------
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:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]