mirror of
https://gitee.com/milvus-io/milvus.git
synced 2025-12-07 01:28:27 +08:00
fix: dropped segment in excluded segment use wrong excluded ts (#43115)
cause some excluded growing data insert again relate: https://github.com/milvus-io/milvus/issues/43114 Signed-off-by: aoiasd <zhicheng.yue@zilliz.com>
This commit is contained in:
parent
d41eec6f10
commit
54cc0b60f2
@ -139,7 +139,13 @@ func (sd *shardDelegator) ProcessInsert(insertRecords map[int64]*InsertData) {
|
||||
if newGrowingSegment {
|
||||
sd.growingSegmentLock.Lock()
|
||||
// check whether segment has been excluded
|
||||
if ok := sd.VerifyExcludedSegments(segmentID, typeutil.MaxTimestamp); !ok {
|
||||
// all segment in excluded segment should not be add again
|
||||
// don not check excluded ts
|
||||
// because dropped segment in excluded segment may use wrong excluded ts
|
||||
// which use checkpoint ts as excluded ts
|
||||
// but checkpoint_ts < segment_end_ts cause exclueded data is not filtered out at filter node
|
||||
// should be excluded here
|
||||
if ok := sd.VerifyExcludedSegments(segmentID, 0); !ok {
|
||||
log.Warn("try to insert data into released segment, skip it", zap.Int64("segmentID", segmentID))
|
||||
sd.growingSegmentLock.Unlock()
|
||||
growing.Release(context.Background())
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user