Skip to content

Commit

Permalink
executor: add table name in log (#24666)
Browse files Browse the repository at this point in the history
  • Loading branch information
Cheese authored May 20, 2021
1 parent 5be8a65 commit 013b3f1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion executor/distsql.go
Original file line number Diff line number Diff line change
Expand Up @@ -1212,7 +1212,9 @@ func (w *tableWorker) executeTask(ctx context.Context, task *lookupTableTask) er
obtainedHandlesMap.Set(handle, true)
}

logutil.Logger(ctx).Error("inconsistent index handles", zap.String("index", w.idxLookup.index.Name.O),
logutil.Logger(ctx).Error("inconsistent index handles",
zap.String("table_name", w.idxLookup.index.Table.O),
zap.String("index", w.idxLookup.index.Name.O),
zap.Int("index_cnt", handleCnt), zap.Int("table_cnt", len(task.rows)),
zap.String("missing_handles", fmt.Sprint(GetLackHandles(task.handles, obtainedHandlesMap))),
zap.String("total_handles", fmt.Sprint(task.handles)))
Expand Down

0 comments on commit 013b3f1

Please sign in to comment.