From db3c0027888871b4a6a591a1803a3c960f306c77 Mon Sep 17 00:00:00 2001 From: aoiasd <45024769+aoiasd@users.noreply.github.com> Date: Tue, 26 Nov 2024 16:26:41 +0800 Subject: [PATCH] fix:wrong warning log when idf oracle find L0 segment lacks (#37873) relate: https://github.com/milvus-io/milvus/issues/35853 Signed-off-by: aoiasd --- internal/querynodev2/delegator/idf_oracle.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/internal/querynodev2/delegator/idf_oracle.go b/internal/querynodev2/delegator/idf_oracle.go index fd0ee65ed0..2f16f8352b 100644 --- a/internal/querynodev2/delegator/idf_oracle.go +++ b/internal/querynodev2/delegator/idf_oracle.go @@ -24,6 +24,7 @@ import ( "github.com/milvus-io/milvus-proto/go-api/v2/commonpb" "github.com/milvus-io/milvus-proto/go-api/v2/schemapb" + "github.com/milvus-io/milvus/internal/proto/datapb" "github.com/milvus-io/milvus/internal/querynodev2/segments" "github.com/milvus-io/milvus/internal/storage" "github.com/milvus-io/milvus/pkg/log" @@ -200,6 +201,10 @@ func (o *idfOracle) SyncDistribution(snapshot *snapshot) { for _, item := range sealed { for _, segment := range item.Segments { + if segment.Level == datapb.SegmentLevel_L0 { + continue + } + if stats, ok := o.sealed[segment.SegmentID]; ok { stats.targetVersion = segment.TargetVersion } else {