Skip to content

Commit

Permalink
executor: add table name in log (#24666) (#24802)
Browse files Browse the repository at this point in the history
  • Loading branch information
ti-srebot authored Aug 12, 2021
1 parent 7589432 commit 210764b
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 @@ -1140,7 +1140,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 210764b

Please sign in to comment.