Improve log for build index in indexNode (#14051)

Signed-off-by: xige-16 <xi.ge@zilliz.com>
pull/14123/head
xige-16 2021-12-23 22:00:16 +08:00 committed by GitHub
parent e0dcba987a
commit a8cb995216
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 1 deletions

View File

@ -134,7 +134,7 @@ func (bt *BaseTask) Name() string {
// OnEnqueue enqueues indexing tasks.
func (it *IndexBuildTask) OnEnqueue() error {
it.SetID(it.req.IndexBuildID)
log.Debug("IndexNode IndexBuilderTask Enqueue", zap.Int64("TaskID", it.ID()))
log.Debug("IndexNode IndexBuilderTask Enqueue", zap.Int64("taskID", it.ID()), zap.Int64("index buildID", it.req.IndexBuildID))
return nil
}
@ -357,6 +357,12 @@ func (it *IndexBuildTask) Execute(ctx context.Context) error {
if len(insertData.Data) != 1 {
return errors.New("we expect only one field in deserialized insert data")
}
log.Debug("IndexNode deserialize data success",
zap.Int64("taskID", it.ID()),
zap.Int64("index buildID", it.req.IndexBuildID),
zap.Int64("collectionID", collectionID),
zap.Int64("partitionID", partitionID),
zap.Int64("segmentID", segmentID))
tr.Record("deserialize storage blobs done")
for fieldID, value := range insertData.Data {