From ebf0806824b06cd530fcacfd364fcff1cb9898b1 Mon Sep 17 00:00:00 2001 From: Cheese Date: Thu, 20 May 2021 18:34:22 +0800 Subject: [PATCH] cherry pick #24666 to release-5.0 Signed-off-by: ti-srebot --- executor/distsql.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/executor/distsql.go b/executor/distsql.go index 316697230f2db..27251d77886ad 100644 --- a/executor/distsql.go +++ b/executor/distsql.go @@ -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)))