From d5255b5eefda7d67d180f80cda3a3c222d9f0e98 Mon Sep 17 00:00:00 2001 From: Gao Date: Tue, 23 Sep 2025 22:26:05 +0800 Subject: [PATCH] fix: set report_value default value when extrainfo is not nil for compatibility (#44529) https://github.com/milvus-io/milvus/issues/44523 Signed-off-by: chasingegg --- internal/proxy/util.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/internal/proxy/util.go b/internal/proxy/util.go index ca0942e499..0cf0154698 100644 --- a/internal/proxy/util.go +++ b/internal/proxy/util.go @@ -2428,6 +2428,9 @@ func SetStorageCost(status *commonpb.Status, storageCost segcore.StorageCost) { } if status.ExtraInfo == nil { status.ExtraInfo = make(map[string]string) + // set report_value to 0 for compatibility, when extra info is not nil, there are always the default report_value + // see https://github.com/milvus-io/pymilvus/pull/2999, pymilvus didn't check the report_value is set and use the value + status.ExtraInfo["report_value"] = strconv.Itoa(0) } status.ExtraInfo["scanned_remote_bytes"] = strconv.FormatInt(storageCost.ScannedRemoteBytes, 10)