mirror of https://github.com/milvus-io/milvus.git
fix: [2.4] Skip l0 segments when syncing segments to datanodes (#34389)
Cherry-pick from master pr: #34388 See also #34387 Signed-off-by: Congqi Xia <congqi.xia@zilliz.com>pull/34425/head
parent
a57c9e61fc
commit
b402485292
|
@ -118,7 +118,7 @@ func (sss *SyncSegmentsScheduler) SyncSegments(collectionID, partitionID int64,
|
||||||
// upon receiving the SyncSegments request, the datanode's segment state may have already transitioned from Growing/Flushing
|
// upon receiving the SyncSegments request, the datanode's segment state may have already transitioned from Growing/Flushing
|
||||||
// to Flushed, so the view must include this segment.
|
// to Flushed, so the view must include this segment.
|
||||||
segments := sss.meta.SelectSegments(WithChannel(channelName), SegmentFilterFunc(func(info *SegmentInfo) bool {
|
segments := sss.meta.SelectSegments(WithChannel(channelName), SegmentFilterFunc(func(info *SegmentInfo) bool {
|
||||||
return info.GetPartitionID() == partitionID && isSegmentHealthy(info)
|
return info.GetPartitionID() == partitionID && info.GetLevel() != datapb.SegmentLevel_L0 && isSegmentHealthy(info)
|
||||||
}))
|
}))
|
||||||
req := &datapb.SyncSegmentsRequest{
|
req := &datapb.SyncSegmentsRequest{
|
||||||
ChannelName: channelName,
|
ChannelName: channelName,
|
||||||
|
|
Loading…
Reference in New Issue