[skip e2e]Add log for GetUnassignedTasks in indexcoord (#14232)

Signed-off-by: Cai.Zhang <cai.zhang@zilliz.com>
pull/13459/head
cai.zhang 2021-12-25 14:56:24 +08:00 committed by GitHub
parent 8c5260c938
commit 33afe1b576
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -402,6 +402,7 @@ func (mt *metaTable) GetUnassignedTasks(onlineNodeIDs []int64) []Meta {
mt.lock.RLock()
defer mt.lock.RUnlock()
log.Debug("IndexCoord get unassigned tasks", zap.Int64s("online nodes", onlineNodeIDs))
var metas []Meta
for _, meta := range mt.indexBuildID2Meta {
@ -425,6 +426,8 @@ func (mt *metaTable) GetUnassignedTasks(onlineNodeIDs []int64) []Meta {
}
}
log.Debug("IndexCoord get unassigned tasks finished", zap.Int("tasks num", len(metas)))
return metas
}