From 00d0f7c19993cc9d0700da4d06eb31f61d7b972a Mon Sep 17 00:00:00 2001 From: dengxiaohai <137682492+dengxiaohai@users.noreply.github.com> Date: Fri, 26 Apr 2024 17:05:29 +0800 Subject: [PATCH] enhance: indexnode building index record collection id (#32574) Adding a collection id to the index node log allows you to associate an index building task with a specific collection. If the host CPU usage is too high due to index build, you can use the collection id to quickly locate a specific collection, improving fault locating efficiency. Signed-off-by: dengxiaohai Co-authored-by: dengxiaohai --- internal/indexnode/indexnode_service.go | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/indexnode/indexnode_service.go b/internal/indexnode/indexnode_service.go index 70631a5bc4..a690e35e4a 100644 --- a/internal/indexnode/indexnode_service.go +++ b/internal/indexnode/indexnode_service.go @@ -54,6 +54,7 @@ func (i *IndexNode) CreateJob(ctx context.Context, req *indexpb.CreateJobRequest } defer i.lifetime.Done() log.Info("IndexNode building index ...", + zap.Int64("collectionID", req.GetCollectionID()), zap.Int64("indexID", req.GetIndexID()), zap.String("indexName", req.GetIndexName()), zap.String("indexFilePrefix", req.GetIndexFilePrefix()),