mirror of
https://gitee.com/milvus-io/milvus.git
synced 2025-12-07 01:28:27 +08:00
fix:Add debug memory freeing in sortStats (#41284)
issue: https://github.com/milvus-io/milvus/issues/41218 Signed-off-by: Xianhui.Lin <xianhui.lin@zilliz.com>
This commit is contained in:
parent
23f9226250
commit
3963fc818f
@ -19,6 +19,7 @@ package index
|
|||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
"fmt"
|
"fmt"
|
||||||
|
"runtime/debug"
|
||||||
"strconv"
|
"strconv"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
@ -267,6 +268,7 @@ func (st *statsTask) sort(ctx context.Context) ([]*datapb.FieldBinlog, error) {
|
|||||||
st.req.GetInsertChannel(),
|
st.req.GetInsertChannel(),
|
||||||
int64(numValidRows), insertLogs, statsLogs, bm25StatsLogs)
|
int64(numValidRows), insertLogs, statsLogs, bm25StatsLogs)
|
||||||
|
|
||||||
|
debug.FreeOSMemory()
|
||||||
log.Info("sort segment end",
|
log.Info("sort segment end",
|
||||||
zap.String("clusterID", st.req.GetClusterID()),
|
zap.String("clusterID", st.req.GetClusterID()),
|
||||||
zap.Int64("taskID", st.req.GetTaskID()),
|
zap.Int64("taskID", st.req.GetTaskID()),
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user