mirror of
https://gitee.com/milvus-io/milvus.git
synced 2025-12-08 01:58:34 +08:00
Delete row num check before load (#20205)
Signed-off-by: xige-16 <xi.ge@zilliz.com> Signed-off-by: xige-16 <xi.ge@zilliz.com>
This commit is contained in:
parent
37dce8a660
commit
05a966afbe
@ -251,18 +251,6 @@ func (loader *segmentLoader) loadFiles(ctx context.Context, segment *Segment,
|
||||
fieldID := fieldBinlog.FieldID
|
||||
// check num rows of data meta and index meta are consistent
|
||||
if indexInfo, ok := fieldID2IndexInfo[fieldID]; ok {
|
||||
if loadInfo.GetNumOfRows() != indexInfo.GetNumRows() {
|
||||
err = fmt.Errorf("num rows of segment binlog file %d mismatch with num rows of index file %d",
|
||||
loadInfo.GetNumOfRows(), indexInfo.GetNumRows())
|
||||
log.Error("load segment failed, set segment to meta failed",
|
||||
zap.Int64("collectionID", segment.collectionID),
|
||||
zap.Int64("partitionID", segment.partitionID),
|
||||
zap.Int64("segmentID", segment.segmentID),
|
||||
zap.Int64("indexBuildID", indexInfo.BuildID),
|
||||
zap.Error(err))
|
||||
return err
|
||||
}
|
||||
|
||||
fieldInfo := &IndexedFieldInfo{
|
||||
fieldBinlog: fieldBinlog,
|
||||
indexInfo: indexInfo,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user