mirror of
https://gitee.com/milvus-io/milvus.git
synced 2024-11-29 18:38:44 +08:00
Process only flushed/flushing segment in global compaction (#13339)
Signed-off-by: Congqi Xia <congqi.xia@zilliz.com>
This commit is contained in:
parent
3a2aace6f0
commit
8476791492
@ -238,7 +238,8 @@ func (t *compactionTrigger) handleGlobalSignal(signal *compactionSignal) {
|
||||
if t.compactionHandler.isFull() {
|
||||
return
|
||||
}
|
||||
segments := t.meta.segments.GetSegments()
|
||||
// only flushed or flushing(flushed but not notified) segments
|
||||
segments := t.meta.SelectSegments(isFlush)
|
||||
singleCompactionPlans := t.globalSingleCompaction(segments, false, signal)
|
||||
if len(singleCompactionPlans) != 0 {
|
||||
log.Debug("global single compaction plans", zap.Int64("signalID", signal.id), zap.Int64s("plans", getPlanIDs(singleCompactionPlans)))
|
||||
|
Loading…
Reference in New Issue
Block a user