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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]