mirror of https://github.com/milvus-io/milvus.git
fix: always sync level zero segments as flushed (#29569)
See also #27675 For now, Level zero segments shall always be synced as `Flushed` ones. This PR fixes when level zero segments selected by policies other than flush ts policy will be synced as growing state. Signed-off-by: Congqi Xia <congqi.xia@zilliz.com>pull/29584/head
parent
a3cb8e2625
commit
55af8f611f
|
@ -403,7 +403,8 @@ func (wb *writeBufferBase) getSyncTask(ctx context.Context, segmentID int64) (sy
|
|||
WithCheckpoint(wb.checkpoint).
|
||||
WithBatchSize(batchSize)
|
||||
|
||||
if segmentInfo.State() == commonpb.SegmentState_Flushing {
|
||||
if segmentInfo.State() == commonpb.SegmentState_Flushing ||
|
||||
segmentInfo.Level() == datapb.SegmentLevel_L0 { // Level zero segment will always be sync as flushed
|
||||
pack.WithFlush()
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue