mirror of https://github.com/milvus-io/milvus.git
Add sourceID output for task.String and fill reduce channel reason (#26447)
Signed-off-by: Congqi Xia <congqi.xia@zilliz.com>pull/26432/head
parent
bdc8c507ea
commit
065d1a962e
|
@ -71,7 +71,9 @@ func (c *ChannelChecker) Check(ctx context.Context) []task.Task {
|
|||
|
||||
channels := c.dist.ChannelDistManager.GetAll()
|
||||
released := utils.FilterReleased(channels, collectionIDs)
|
||||
tasks = append(tasks, c.createChannelReduceTasks(ctx, released, -1)...)
|
||||
releaseTasks := c.createChannelReduceTasks(ctx, released, -1)
|
||||
task.SetReason("collection released", releaseTasks...)
|
||||
tasks = append(tasks, releaseTasks...)
|
||||
return tasks
|
||||
}
|
||||
|
||||
|
|
|
@ -249,9 +249,10 @@ func (task *baseTask) String() string {
|
|||
}
|
||||
}
|
||||
return fmt.Sprintf(
|
||||
"[id=%d] [type=%s] [reason=%s] [collectionID=%d] [replicaID=%d] [priority=%s] [actionsCount=%d] [actions=%s]",
|
||||
"[id=%d] [type=%s] [source=%d] [reason=%s] [collectionID=%d] [replicaID=%d] [priority=%s] [actionsCount=%d] [actions=%s]",
|
||||
task.id,
|
||||
GetTaskType(task).String(),
|
||||
task.sourceID,
|
||||
task.reason,
|
||||
task.collectionID,
|
||||
task.replicaID,
|
||||
|
|
Loading…
Reference in New Issue