Skip to content

Commit

Permalink
fix: fix l0 compaction may miss some sealed segments (#33980)
Browse files Browse the repository at this point in the history
issue: #33955

Signed-off-by: sunby <sunbingyi1992@gmail.com>
  • Loading branch information
sunby committed Jun 21, 2024
1 parent 958ecd5 commit 622be36
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 622be36

Please sign in to comment.