Skip to content

Commit

Permalink
fix: fix l0 compaction may miss some sealed segments
Browse files Browse the repository at this point in the history
issue: milvus-io#33955

Signed-off-by: sunby <sunbingyi1992@gmail.com>
  • Loading branch information
sunby committed Jun 19, 2024
1 parent 1216a4b commit f4b2b85
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/datacoord/compaction_task_l0.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit f4b2b85

Please sign in to comment.