Add some log. (#16978)

Signed-off-by: sunby <bingyi.sun@zilliz.com>

Co-authored-by: sunby <bingyi.sun@zilliz.com>
This commit is contained in:
Bingyi Sun 2022-05-16 17:15:55 +08:00 committed by GitHub
parent e38c6f6c44
commit 59bc0a7000
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 2 deletions

View File

@ -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)

View File

@ -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()))