Skip to content

Commit e75c94c

Browse files
comment on 0 for estimatedMergeBytes
1 parent 0959714 commit e75c94c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

server/src/main/java/org/elasticsearch/index/engine/ThreadPoolMergeScheduler.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -410,6 +410,8 @@ void abortOnGoingMerge() {
410410
}
411411

412412
long estimatedMergeSize() {
413+
// TODO is it possible that `estimatedMergeBytes` be `0` for correctly initialize merges,
414+
// or is it always the case that if `estimatedMergeBytes` is `0` that means that the merge has not yet been initialized?
413415
return onGoingMerge.getMerge().getStoreMergeInfo().estimatedMergeBytes();
414416
}
415417

0 commit comments

Comments
 (0)