Skip to content

Commit

Permalink
store: refine coprocessor error log (pingcap#52729)
Browse files Browse the repository at this point in the history
Signed-off-by: crazycs520 <crazycs520@gmail.com>
  • Loading branch information
crazycs520 committed May 15, 2024
1 parent 1cb8533 commit 312d100
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions store/copr/coprocessor.go
Original file line number Diff line number Diff line change
Expand Up @@ -1222,6 +1222,8 @@ func (worker *copIteratorWorker) handleCopResponse(bo *Backoffer, rpcCtx *tikv.R
logutil.Logger(bo.GetCtx()).Warn("other error",
zap.Uint64("txnStartTS", worker.req.StartTs),
zap.Uint64("regionID", task.region.GetID()),
zap.Uint64("regionVer", task.region.GetVer()),
zap.Uint64("regionConfVer", task.region.GetConfVer()),
zap.Uint64("bucketsVer", task.bucketsVer),
zap.Uint64("latestBucketsVer", resp.pbResp.GetLatestBucketsVersion()),
zap.Int("rangeNums", task.ranges.Len()),
Expand Down Expand Up @@ -1372,6 +1374,8 @@ func (worker *copIteratorWorker) handleBatchCopResponse(bo *Backoffer, rpcCtx *t
logutil.Logger(bo.GetCtx()).Warn("other error",
zap.Uint64("txnStartTS", worker.req.StartTs),
zap.Uint64("regionID", task.region.GetID()),
zap.Uint64("regionVer", task.region.GetVer()),
zap.Uint64("regionConfVer", task.region.GetConfVer()),
zap.Uint64("bucketsVer", task.bucketsVer),
// TODO: add bucket version in log
//zap.Uint64("latestBucketsVer", batchResp.GetLatestBucketsVersion()),
Expand Down

0 comments on commit 312d100

Please sign in to comment.