Skip to content

Commit

Permalink
fix:wrong warning log when idf oracle find L0 segment lacks (milvus-i…
Browse files Browse the repository at this point in the history
…o#37873)

relate: milvus-io#35853

Signed-off-by: aoiasd <[email protected]>
  • Loading branch information
aoiasd authored Nov 26, 2024
1 parent c5327ff commit db3c002
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions internal/querynodev2/delegator/idf_oracle.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit db3c002

Please sign in to comment.