mirror of https://github.com/milvus-io/milvus.git
fix: [10kcp] Fix incorrect memory estimation for small segments (#38814)
Skip estimation index memory logic for segments without index file. issue: https://github.com/milvus-io/milvus/issues/37630 pr: https://github.com/milvus-io/milvus/pull/38813 Signed-off-by: bigsheeper <yihao.dai@zilliz.com>pull/38828/head
parent
15b9f51728
commit
fee1f77d4e
|
@ -1652,7 +1652,7 @@ func getResourceUsageEstimateOfSegment(schema *schemapb.CollectionSchema, loadIn
|
|||
binlogSize := uint64(getBinlogDataMemorySize(fieldBinlog))
|
||||
shouldCalculateDataSize := false
|
||||
|
||||
if fieldIndexInfo, ok := fieldID2IndexInfo[fieldID]; ok {
|
||||
if fieldIndexInfo, ok := fieldID2IndexInfo[fieldID]; ok && len(fieldIndexInfo.GetIndexFilePaths()) > 0 {
|
||||
var estimateResult ResourceEstimate
|
||||
err := GetCLoadInfoWithFunc(ctx, fieldSchema, loadInfo, fieldIndexInfo, func(c *LoadIndexInfo) error {
|
||||
loadResourceRequest := C.EstimateLoadIndexResource(c.cLoadIndexInfo)
|
||||
|
|
Loading…
Reference in New Issue