fix: fix l0 compaction may miss some sealed segments (#33980)

issue: https://github.com/milvus-io/milvus/issues/33955

Signed-off-by: sunby <sunbingyi1992@gmail.com>
pull/34067/head
Bingyi Sun 2024-06-21 16:52:15 +08:00 committed by GitHub
parent 958ecd500b
commit 622be36ad7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -250,7 +250,7 @@ func (t *l0CompactionTask) BuildCompactionRequest() (*datapb.CompactionPlan, err
//!info.isCompacting &&
!info.GetIsImporting() &&
info.GetLevel() != datapb.SegmentLevel_L0 &&
info.GetDmlPosition().GetTimestamp() < t.GetPos().GetTimestamp()
info.GetStartPosition().GetTimestamp() < t.GetPos().GetTimestamp()
}))
if len(sealedSegments) == 0 {