Remove index check to trigger compaction (#23657)

Signed-off-by: yangxuan <xuan.yang@zilliz.com>
pull/23683/head
XuanYang-cn 2023-04-24 20:26:34 +08:00 committed by GitHub
parent 4a2726b3f9
commit 72485c9eeb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 3 deletions

View File

@ -353,8 +353,6 @@ func (t *compactionTrigger) handleGlobalSignal(signal *compactionSignal) {
break
}
//group.segments = FilterInIndexedSegments(t.handler, t.meta, group.segments...)
isDiskIndex, err := t.updateSegmentMaxSize(group.segments)
if err != nil {
log.Warn("failed to update segment max size", zap.Error(err))
@ -722,7 +720,6 @@ func reverseGreedySelect(candidates []*SegmentInfo, free int64, maxSegment int)
func (t *compactionTrigger) getCandidateSegments(channel string, partitionID UniqueID) []*SegmentInfo {
segments := t.meta.GetSegmentsByChannel(channel)
segments = FilterInIndexedSegments(t.handler, t.meta, segments...)
var res []*SegmentInfo
for _, s := range segments {
if !isSegmentHealthy(s) ||