jpountz commented on code in PR #266: URL: https://github.com/apache/lucene/pull/266#discussion_r1850802366
########## lucene/core/src/java/org/apache/lucene/index/TieredMergePolicy.java: ########## @@ -495,36 +495,36 @@ private MergeSpecification doFindMerges( for (int startIdx = 0; startIdx < sortedEligible.size(); startIdx++) { long totAfterMergeBytes = 0; - final List<SegmentCommitInfo> candidate = new ArrayList<>(); boolean hitTooLarge = false; - long bytesThisMerge = 0; for (int idx = startIdx; idx < sortedEligible.size() - && candidate.size() < mergeFactor - && bytesThisMerge < maxMergedSegmentBytes; + && candidate.size() < maxMergeAtOnce + // We allow merging more that mergeFactor segments together if the merged segment Review Comment: Thank you, fixed. -- 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. To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org 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