未验证 提交 59bc0a70 编写于 作者: B Bingyi Sun 提交者: GitHub

Add some log. (#16978)

Signed-off-by: Nsunby <bingyi.sun@zilliz.com>
Co-authored-by: Nsunby <bingyi.sun@zilliz.com>
上级 e38c6f6c
......@@ -2278,7 +2278,9 @@ func (lbt *loadBalanceTask) globalPostExecute(ctx context.Context) error {
log.Debug("removing offline nodes from replicas and segments...",
zap.Int("len(replicas)", len(replicas)),
zap.Int("len(segments)", len(segments)))
zap.Int("len(segments)", len(segments)),
zap.Int64("trigger task ID", lbt.getTaskID()),
)
wg := sync.WaitGroup{}
for _, replica := range replicas {
wg.Add(1)
......
......@@ -576,7 +576,10 @@ func (scheduler *TaskScheduler) scheduleLoop() {
var triggerTask task
processInternalTaskFn := func(activateTasks []task, triggerTask task) {
log.Debug("scheduleLoop: num of child task", zap.Int("num child task", len(activateTasks)))
log.Debug("scheduleLoop: num of child task",
zap.Int("num child task", len(activateTasks)),
zap.Int64("trigger task ID", triggerTask.getTaskID()),
)
for _, childTask := range activateTasks {
if childTask != nil {
log.Debug("scheduleLoop: add an activate task to activateChan", zap.Int64("taskID", childTask.getTaskID()))
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册